Class EntityTravelToDimensionEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.EntityTravelToDimensionEvent

public class EntityTravelToDimensionEvent extends EntityEvent
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 Cancelable.
If this event is canceled, the Entity does not travel to the dimension.

This event does not have a result. Event.HasResult

This event is fired on the MinecraftForge.EVENT_BUS.
  • Field Details

  • Constructor Details

    • EntityTravelToDimensionEvent

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