Class EntityTeleportEvent.EnderEntity

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.EntityTeleportEvent
net.neoforged.neoforge.event.entity.EntityTeleportEvent.EnderEntity
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
EntityTeleportEvent

public static class EntityTeleportEvent.EnderEntity extends EntityTeleportEvent implements net.neoforged.bus.api.ICancellableEvent

Fired before an EnderMan or Shulker randomly teleports.

For EnderMan entities: if the target position is modified to a location where it could not normally teleport to, such as by reason of being obstructed with blocks, it will not teleport there even if this event is not canceled.

This event is fired on the game event bus, only on the logical server.

This event is cancellable. If this event is canceled, the entity will not be teleported.

  • Field Details

  • Constructor Details

    • EnderEntity

      public EnderEntity(LivingEntity entity, double targetX, double targetY, double targetZ)
  • Method Details