T
- The registry top level typepublic static class RegistryEvent.Register<T extends IForgeRegistryEntry<T>> extends RegistryEvent<T>
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.RegistryEvent.MissingMappings<T extends IForgeRegistryEntry<T>>, RegistryEvent.NewRegistry, RegistryEvent.Register<T extends IForgeRegistryEntry<T>>
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
name |
private IForgeRegistry<T> |
registry |
Constructor and Description |
---|
Register(ResourceLocation name,
IForgeRegistry<T> registry) |
Modifier and Type | Method and Description |
---|---|
ResourceLocation |
getName() |
IForgeRegistry<T> |
getRegistry() |
getGenericType
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setModContainer
private final IForgeRegistry<T extends IForgeRegistryEntry<T>> registry
private final ResourceLocation name
public Register(ResourceLocation name, IForgeRegistry<T> registry)
public IForgeRegistry<T> getRegistry()
public ResourceLocation getName()