Class ModLifecycleEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.fml.event.lifecycle.ModLifecycleEvent
-
- All Implemented Interfaces:
IModBusEvent
- Direct Known Subclasses:
FMLFingerprintViolationEvent
,FMLModIdMappingEvent
,ParallelDispatchEvent
public class ModLifecycleEvent extends net.minecraftforge.eventbus.api.Event implements IModBusEvent
Parent type to all ModLifecycle events. This is based on Forge EventBus. They fire through the ModContainer's eventbus instance.
-
-
Field Summary
Fields Modifier and Type Field Description private ModContainer
container
-
Constructor Summary
Constructors Constructor Description ModLifecycleEvent(ModContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
description()
(package private) ModContainer
getContainer()
java.util.stream.Stream<InterModComms.IMCMessage>
getIMCStream()
java.util.stream.Stream<InterModComms.IMCMessage>
getIMCStream(java.util.function.Predicate<java.lang.String> methodFilter)
java.lang.String
toString()
-
-
-
Field Detail
-
container
private final ModContainer container
-
-
Constructor Detail
-
ModLifecycleEvent
public ModLifecycleEvent(ModContainer container)
-
-
Method Detail
-
description
public final java.lang.String description()
-
getIMCStream
public java.util.stream.Stream<InterModComms.IMCMessage> getIMCStream()
-
getIMCStream
public java.util.stream.Stream<InterModComms.IMCMessage> getIMCStream(java.util.function.Predicate<java.lang.String> methodFilter)
-
getContainer
ModContainer getContainer()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-