Class ServerBlockEntityEvents
java.lang.Object
net.fabricmc.fabric.api.event.lifecycle.v1.ServerBlockEntityEvents
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<ServerBlockEntityEvents.Load> Called when an BlockEntity is loaded into a ServerLevel.static final Event<ServerBlockEntityEvents.Unload> Called when an BlockEntity is about to be unloaded from a ServerLevel. -
Method Summary
-
Field Details
-
BLOCK_ENTITY_LOAD
Called when an BlockEntity is loaded into a ServerLevel.When this is event is called, the block entity is already in the level. However, its data might not be loaded yet, so don't rely on it.
-
BLOCK_ENTITY_UNLOAD
Called when an BlockEntity is about to be unloaded from a ServerLevel.When this event is called, the block entity is still present on the level.
-