Package net.minecraftforge.event
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.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.RegistryEvent
RegistryEvent.IdMappingEvent, RegistryEvent.MissingMappings<T extends IForgeRegistryEntry<T>>, RegistryEvent.Register<T extends IForgeRegistryEntry<T>>
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.GenericEvent
getGenericType
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup