Class FMLCommonSetupEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.fml.event.lifecycle.ModLifecycleEvent
net.minecraftforge.fml.event.lifecycle.ParallelDispatchEvent
net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent
- All Implemented Interfaces:
IModBusEvent
This is the first of four commonly called events during mod initialization.
Called after
RegisterEvent
events have been fired and before
FMLClientSetupEvent
or FMLDedicatedServerSetupEvent
during mod startup.
Either register your listener using AutomaticEventSubscriber
and
SubscribeEvent
or
IEventBus.addListener(Consumer)
in your constructor.
Most non-specific mod setup will be performed here. Note that this is a parallel dispatched event - you cannot
interact with game state in this event.-
Nested Class Summary
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
-
Method Summary
Methods inherited from class net.minecraftforge.fml.event.lifecycle.ParallelDispatchEvent
enqueueWork, enqueueWork
Methods inherited from class net.minecraftforge.fml.event.lifecycle.ModLifecycleEvent
description, getContainer, getIMCStream, getIMCStream, toString
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
FMLCommonSetupEvent
-