Class SlimeChangeDirectionEvent

All Implemented Interfaces:
Cancellable

@NullMarked public class SlimeChangeDirectionEvent extends SlimePathfindEvent
Fired when a Slime decides to change its facing direction.

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

  • Constructor Details

    • SlimeChangeDirectionEvent

      @Internal public SlimeChangeDirectionEvent(Slime slime, float yaw)
  • Method Details

    • getNewYaw

      public float getNewYaw()
      Get the new chosen yaw
      Returns:
      Chosen yaw
    • setNewYaw

      public void setNewYaw(float yaw)
      Set the new chosen yaw
      Parameters:
      yaw - Chosen yaw