Package net.actor.api.v1
Schnittstelle IOrientation
- Alle bekannten Implementierungsklassen:
Orientation
public interface IOrientation
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddPitch(float pitch) Adds to the pitch (up/down looking) of the linkedLocalPlayer.voidaddRotation(float yaw, float pitch) Adds to the rotation of the linkedLocalPlayervoidaddYaw(float yaw) Adds to the yaw (left/right looking) of the linkedLocalPlayer.voidsetPitch(float pitch) Sets the pitch (up/down looking) of the linkedLocalPlayer.voidsetRotation(float yaw, float pitch) Sets the rotation of the linkedLocalPlayervoidsetYaw(float yaw) Sets the yaw (left/right looking) of the linkedLocalPlayer.voidsupplyPitch(Supplier<Float> pitchSupplier) Supplies a pitch value to the linkedLocalPlayer.voidsupplyRotation(Supplier<Float> yawSupplier, Supplier<Float> pitchSupplier) Supplies a Rotation to the linkedLocalPlayer.voidSupplies a yaw value to the linkedLocalPlayer.
-
Methodendetails
-
setRotation
void setRotation(float yaw, float pitch) Sets the rotation of the linkedLocalPlayer- Parameter:
yaw- The yaw component of the Rotation (left/right looking)pitch- The pitch component of the Rotation (up/down looking). In the Interval [-90;90]
-
addRotation
void addRotation(float yaw, float pitch) Adds to the rotation of the linkedLocalPlayer- Parameter:
yaw- The yaw component of the Rotation (left/right looking)pitch- The pitch component of the Rotation (up/down looking). In the Interval [-90;90]
-
supplyRotation
Supplies a Rotation to the linkedLocalPlayer. The suppliers are called every ClientTick and should return the rotation that theLocalPlayershould use- Parameter:
yawSupplier- The FloatSupplier for the yaw component of the rotationpitchSupplier- The FloatSupplier for the pitch component of the rotation
-
setYaw
void setYaw(float yaw) Sets the yaw (left/right looking) of the linkedLocalPlayer.- Parameter:
yaw- The new yaw value
-
addYaw
void addYaw(float yaw) Adds to the yaw (left/right looking) of the linkedLocalPlayer.- Parameter:
yaw- The yaw delta to add
-
supplyYaw
Supplies a yaw value to the linkedLocalPlayer. The supplier is called every ClientTick and should return the yaw that theLocalPlayershould use.- Parameter:
yawSupplier- The FloatSupplier for the yaw component
-
setPitch
void setPitch(float pitch) Sets the pitch (up/down looking) of the linkedLocalPlayer.- Parameter:
pitch- The new pitch value, expected in the interval [-90;90]
-
addPitch
void addPitch(float pitch) Adds to the pitch (up/down looking) of the linkedLocalPlayer.- Parameter:
pitch- The pitch delta to add, expected in the interval [-90;90]
-
supplyPitch
Supplies a pitch value to the linkedLocalPlayer. The supplier is called every ClientTick and should return the pitch that the player should use.- Parameter:
pitchSupplier- The FloatSupplier for the pitch component
-