Class RegistryEvent.Register<T extends IForgeRegistryEntry<T>>

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.GenericEvent<T>
net.minecraftforge.event.RegistryEvent<T>
net.minecraftforge.event.RegistryEvent.Register<T>
Type Parameters:
T - The registry top level type
All Implemented Interfaces:
net.minecraftforge.eventbus.api.IGenericEvent<T>, IModBusEvent
Enclosing class:
RegistryEvent<T extends IForgeRegistryEntry<T>>

public static class RegistryEvent.Register<T extends IForgeRegistryEntry<T>> extends RegistryEvent<T>
Register your objects for the appropriate registry type when you receive this event. event.getRegistry().register(...) The registries will be visited in alphabetic order of their name, except blocks and items, which will be visited FIRST and SECOND respectively. ObjectHolders will reload between Blocks and Items, and after all registries have been visited.