Interface MobTeleportEvent

All Superinterfaces:
Cancellable, Event, MobEvent

public interface MobTeleportEvent extends MobEvent, Cancellable
Fired when a mob is about to teleport by itself, as an enderman does, once it found where to land.

Cancelling it keeps the mob where it is; an enderman then tries elsewhere, firing the event anew. It does not fire for a plugin teleporting the mob.

Since:
0.1.0
  • Method Details

    • from

      Location from()
      Returns where the mob stands.
      Returns:
      where the mob stands
      Since:
      0.1.0
    • to

      Location to()
      Returns where the mob is about to land.
      Returns:
      where the mob is about to land
      Since:
      0.1.0