Class SlimeChangeDirectionEvent

All Implemented Interfaces:
Cancellable

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

  • 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