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 have a result.
invalid @linkplain
cancellable
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
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.event.entity.EntityEvent
getEntity
Methods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
-
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
-