Class SlimeTargetLivingEntityEvent

All Implemented Interfaces:
Cancellable

@NullMarked public class SlimeTargetLivingEntityEvent extends SlimePathfindEvent
Fired when a Slime decides to change direction to target a LivingEntity.

This event does not fire for the entity's actual movement. Only when it is choosing to start moving.

  • Constructor Details

  • Method Details

    • getTarget

      public LivingEntity getTarget()
      Get the targeted entity
      Returns:
      Targeted entity