Package dev.boze.api.event
Class EventGrim.Rotate
java.lang.Object
dev.boze.api.event.EventGrim
dev.boze.api.event.EventGrim.Rotate
- Enclosing class:
EventGrim
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.boze.api.event.EventGrim
EventGrim.Interact, EventGrim.Rotate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 addonsfloat
getPitch()
Gets the pitchfloat
getYaw()
Gets the yawboolean
isSet()
Addons that wish to have a lower priority than Boze should check this methodvoid
set
(float yaw, float pitch)
-
Constructor Details
-
Rotate
public Rotate()
-
-
Method Details
-
get
Gets the event instance - this is called once a tick by Boze, and should not be called by addons- Parameters:
yaw
- Current yawpitch
- Current pitchset
- If rotations are already set by Boze- Returns:
- The event instance
-
set
public void set(float yaw, float pitch) - Parameters:
yaw
- New yawpitch
- New pitch
-
isSet
public boolean isSet()Addons that wish to have a lower priority than Boze should check this methodIf 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
-