Class SlimeChangeDirectionEvent

All Implemented Interfaces:
Cancellable

public class SlimeChangeDirectionEvent extends SlimePathfindEvent implements Cancellable
Fired when a Slime decides to change it's facing direction.

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

  • Constructor Details

    • SlimeChangeDirectionEvent

      public SlimeChangeDirectionEvent(@NotNull @NotNull 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