Class EntityTravelToDimensionEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.EntityTravelToDimensionEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class EntityTravelToDimensionEvent
extends EntityEvent
implements net.neoforged.bus.api.ICancellableEvent
EntityTravelToDimensionEvent is fired before an Entity travels to a dimension.
This event is
If this event is canceled, the Entity does not travel to the dimension.
This event does not have a result.
This event is fired on the
dimension
contains the id of the dimension the entity is traveling to.This event is
ICancellableEvent
.If this event is canceled, the Entity does not travel to the dimension.
This event does not have a result.
invalid reference
HasResult
This event is fired on the
NeoForge.EVENT_BUS
.-
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
dimension
-
-
Constructor Details
-
EntityTravelToDimensionEvent
-
-
Method Details
-
getDimension
-