Package net.fabricmc.fabric.api.event.registry

Types

DynamicRegistrySetupCallback
Link copied to clipboard
public interface DynamicRegistrySetupCallback
This event gets triggered when a new DynamicRegistryManager gets created, but before it gets filled.
FabricRegistryBuilder
Link copied to clipboard
public final class FabricRegistryBuilder<T, R extends MutableRegistry<T>>
Used to create custom registries, with specified registry attributes.
RegistryAttribute
Link copied to clipboard
public enum RegistryAttribute
RegistryAttributeHolder
Link copied to clipboard
public interface RegistryAttributeHolder
RegistryEntryAddedCallback
Link copied to clipboard
public interface RegistryEntryAddedCallback<T>
RegistryEntryRemovedCallback
Link copied to clipboard
public interface RegistryEntryRemovedCallback<T>
RegistryIdRemapCallback
Link copied to clipboard
public interface RegistryIdRemapCallback<T>
The remapping process functions as follows:
  • RegistryEntryRemovedCallbacks are called to remove any objects culled in the process, with the old numeric ID.
  • RegistryIdRemapCallback is emitted to allow remapping the IDs of objects still present.
  • RegistryEntryAddedCallbacks are called to add any objects added in the process, with the new numeric ID.
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).