public class ModEventRegistry extends CallbackRegistry<ModEventRegistry.IFMLEventCallback<?>,ModEventRegistry.FMLEventPredicate<?>,java.lang.Void>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ModEventRegistry.FMLEventPredicate<T extends net.minecraftforge.fml.common.event.FMLEvent>
Specialized
ICallback.ICallbackPredicate for FMLEvents |
static interface |
ModEventRegistry.IFMLEventCallback<T extends net.minecraftforge.fml.common.event.FMLEvent>
Specialized
ICallback for FMLEvents. |
callbacks, reduce| Constructor and Description |
|---|
ModEventRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
processCallbacks(net.minecraftforge.fml.common.event.FMLEvent event)
Process the
ModEventRegistry.IFMLEventCallback registered for the specified FMLEvent. |
<T extends net.minecraftforge.fml.common.event.FMLEvent> |
registerCallback(java.lang.Class<T> clazz,
ModEventRegistry.IFMLEventCallback<T> consumer)
Registers a
ModEventRegistry.IFMLEventCallback that will be called when MalisisCore will reach the specified FMLEvent. |
void |
registerCallback(ModEventRegistry.IFMLEventCallback<?> callback,
ICallback.CallbackOption<ModEventRegistry.FMLEventPredicate<?>> option)
Deprecated.
|
processCallbacks, reduce@Deprecated public void registerCallback(ModEventRegistry.IFMLEventCallback<?> callback, ICallback.CallbackOption<ModEventRegistry.FMLEventPredicate<?>> option)
registerCallback(Class, IFMLEventCallback) instead.registerCallback in class CallbackRegistry<ModEventRegistry.IFMLEventCallback<?>,ModEventRegistry.FMLEventPredicate<?>,java.lang.Void>callback - the callbackoption - the optionpublic <T extends net.minecraftforge.fml.common.event.FMLEvent> void registerCallback(java.lang.Class<T> clazz,
ModEventRegistry.IFMLEventCallback<T> consumer)
ModEventRegistry.IFMLEventCallback that will be called when MalisisCore will reach the specified FMLEvent.T - the generic typeclazz - the clazzconsumer - the consumerpublic void processCallbacks(net.minecraftforge.fml.common.event.FMLEvent event)
ModEventRegistry.IFMLEventCallback registered for the specified FMLEvent.event - the event