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.

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.
  • Field Details

  • Constructor Details

    • EntityTravelToDimensionEvent

      public EntityTravelToDimensionEvent(Entity entity, ResourceKey<Level> dimension)
  • Method Details