Interface ClientLifecycleEvent
@Environment(CLIENT)
public interface ClientLifecycleEvent
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<ClientLifecycleEvent.ClientLevelState>
Invoked after a level is loaded only on the client-side.static final Event<ClientLifecycleEvent.ClientState>
Invoked once client setup has begun.static final Event<ClientLifecycleEvent.ClientState>
Invoked when client has been initialised.static final Event<ClientLifecycleEvent.ClientState>
Invoked when client is stopping.
-
Field Details
-
CLIENT_STARTED
Invoked when client has been initialised. Equivalent to Fabric'sClientLifecycleEvents.CLIENT_STARTING
. -
CLIENT_STOPPING
Invoked when client is stopping. Equivalent to Fabric'sClientLifecycleEvents.CLIENT_STOPPING
. -
CLIENT_LEVEL_LOAD
Invoked after a level is loaded only on the client-side. Equivalent to Forge'sWorldEvent.Load
event (on client). -
CLIENT_SETUP
Invoked once client setup has begun.This happens during
FMLClientSetupEvent
on Forge, or when Architectury API's client entrypoint initialises on Fabric.Registries should have been initialised by this point, but there are no such guarantees, as you can modify the registry beyond this point on non-Forge environments.
-