T
- The registry type.@FunctionalInterface public interface RegistryIdRemapCallback<T>
RegistryIdRemapCallback is called on every remapping operation, if you want to do your own processing in one swoop (say, rebuild the ID map from scratch).
Generally speaking, a remap can only cause object *removals*; object *additions* are necessary to reverse remaps.
Modifier and Type | Interface and Description |
---|---|
static interface |
RegistryIdRemapCallback.RemapState<T> |
Modifier and Type | Method and Description |
---|---|
static <T> Event<RegistryIdRemapCallback<T>> |
event(net.minecraft.util.registry.Registry<T> registry) |
void |
onRemap(RegistryIdRemapCallback.RemapState<T> state) |
void onRemap(RegistryIdRemapCallback.RemapState<T> state)
static <T> Event<RegistryIdRemapCallback<T>> event(net.minecraft.util.registry.Registry<T> registry)