Class RegistryEvent<T extends IForgeRegistryEntry<T>>

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.GenericEvent<T>
net.minecraftforge.event.RegistryEvent<T>
All Implemented Interfaces:
net.minecraftforge.eventbus.api.IGenericEvent<T>, IModBusEvent
Direct Known Subclasses:
RegistryEvent.MissingMappings, RegistryEvent.Register

public class RegistryEvent<T extends IForgeRegistryEntry<T>> extends net.minecraftforge.eventbus.api.GenericEvent<T> implements IModBusEvent
RegistryEvent supertype.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Called whenever the ID mapping might have changed.
    static class 
     
    static class 
    Register your objects for the appropriate registry type when you receive this event.

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegistryEvent

      RegistryEvent(Class<T> clazz)