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
public class FMLCommonSetupEvent extends ParallelDispatchEvent
This is the first of four commonly called events during mod initialization. Called beforeFMLClientSetupEvent
orFMLDedicatedServerSetupEvent
during mod startup. Called afterRegistryEvent.Register
events have been fired. Either register your listener usingAutomaticEventSubscriber
andSubscribeEvent
orIEventBus.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.
-
-
Constructor Summary
Constructors Constructor Description FMLCommonSetupEvent(ModContainer container)
-
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
-
-
-
-
Constructor Detail
-
FMLCommonSetupEvent
public FMLCommonSetupEvent(ModContainer container)
-
-