Class EntityLeaveLevelEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.EntityLeaveLevelEvent
This event is fired whenever an
Entity
leaves a Level
.
This event is fired whenever an entity is removed from the level in LevelCallback.onTrackingEnd(Object)
.
This event is not
and does not
invalid reference
cancellable
.
invalid reference
have a result
This event is fired on the main Forge event bus on both logical sides.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.event.entity.EntityEvent
getEntity
-
Field Details
-
level
-
-
Constructor Details
-
EntityLeaveLevelEvent
-
-
Method Details
-
getLevel
Returns the level the entity is set to leave.- Returns:
- the level the entity is set to leave
-