Class SlimeChangeDirectionEvent

All Implemented Interfaces:

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
      Chosen yaw
    • setNewYaw

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