package io.lampnet.travelerssuitcase.world; import net.minecraft.core.MappedRegistry; import net.minecraft.resources.ResourceLocation; import org.jetbrains.annotations.ApiStatus; @ApiStatus.Internal public interface RemoveFromRegistry { @SuppressWarnings("unchecked") static boolean remove(MappedRegistry registry, ResourceLocation key) { return ((RemoveFromRegistry) registry).fantasy$remove(key); } @SuppressWarnings("unchecked") static boolean remove(MappedRegistry registry, T value) { return ((RemoveFromRegistry) registry).fantasy$remove(value); } boolean fantasy$remove(T value); boolean fantasy$remove(ResourceLocation key); void fantasy$setFrozen(boolean value); boolean fantasy$isFrozen(); }