Class EventGrim.Rotate

java.lang.Object
dev.boze.api.event.EventGrim
dev.boze.api.event.EventGrim.Rotate
Enclosing class:
EventGrim

public static class EventGrim.Rotate extends EventGrim
  • Constructor Details

    • Rotate

      public Rotate()
  • Method Details

    • get

      public static EventGrim.Rotate get(float yaw, float pitch, boolean set)
      Gets the event instance - this is called once a tick by Boze, and should not be called by addons
      Parameters:
      yaw - Current yaw
      pitch - Current pitch
      set - If rotations are already set by Boze
      Returns:
      The event instance
    • set

      public void set(float yaw, float pitch)
      Parameters:
      yaw - New yaw
      pitch - New pitch
    • isSet

      public boolean isSet()
      Addons that wish to have a lower priority than Boze should check this method

      If this method returns true, the addon should not rotate

      Returns:
      are rotations set
    • getYaw

      public float getYaw()
      Gets the yaw
      Returns:
      The yaw
    • getPitch

      public float getPitch()
      Gets the pitch
      Returns:
      The pitch