Package net.minecraftforge.event.entity
Class EntityLeaveLevelEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.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 cancellable and does not 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.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.EyeHeight, EntityEvent.Size
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, 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
-