Package net.actor.impl
Klasse Orientation
java.lang.Object
net.actor.impl.Orientation
- Alle implementierten Schnittstellen:
IOrientation,IDeserializable
-
Konstruktorübersicht
Konstruktoren -
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.voiddeinit()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.
-
Konstruktordetails
-
Orientation
-
-
Methodendetails
-
setRotation
public void setRotation(float yaw, float pitch) Beschreibung aus Schnittstelle kopiert:IOrientationSets the rotation of the linkedLocalPlayer- Angegeben von:
setRotationin SchnittstelleIOrientation- 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
public void addRotation(float yaw, float pitch) Beschreibung aus Schnittstelle kopiert:IOrientationAdds to the rotation of the linkedLocalPlayer- Angegeben von:
addRotationin SchnittstelleIOrientation- 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
Beschreibung aus Schnittstelle kopiert:IOrientationSupplies a Rotation to the linkedLocalPlayer. The suppliers are called every ClientTick and should return the rotation that theLocalPlayershould use- Angegeben von:
supplyRotationin SchnittstelleIOrientation- Parameter:
yawSupplier- The FloatSupplier for the yaw component of the rotationpitchSupplier- The FloatSupplier for the pitch component of the rotation
-
setYaw
public void setYaw(float yaw) Beschreibung aus Schnittstelle kopiert:IOrientationSets the yaw (left/right looking) of the linkedLocalPlayer.- Angegeben von:
setYawin SchnittstelleIOrientation- Parameter:
yaw- The new yaw value
-
addYaw
public void addYaw(float yaw) Beschreibung aus Schnittstelle kopiert:IOrientationAdds to the yaw (left/right looking) of the linkedLocalPlayer.- Angegeben von:
addYawin SchnittstelleIOrientation- Parameter:
yaw- The yaw delta to add
-
supplyYaw
Beschreibung aus Schnittstelle kopiert:IOrientationSupplies a yaw value to the linkedLocalPlayer. The supplier is called every ClientTick and should return the yaw that theLocalPlayershould use.- Angegeben von:
supplyYawin SchnittstelleIOrientation- Parameter:
yawSupplier- The FloatSupplier for the yaw component
-
setPitch
public void setPitch(float pitch) Beschreibung aus Schnittstelle kopiert:IOrientationSets the pitch (up/down looking) of the linkedLocalPlayer.- Angegeben von:
setPitchin SchnittstelleIOrientation- Parameter:
pitch- The new pitch value, expected in the interval [-90;90]
-
addPitch
public void addPitch(float pitch) Beschreibung aus Schnittstelle kopiert:IOrientationAdds to the pitch (up/down looking) of the linkedLocalPlayer.- Angegeben von:
addPitchin SchnittstelleIOrientation- Parameter:
pitch- The pitch delta to add, expected in the interval [-90;90]
-
supplyPitch
Beschreibung aus Schnittstelle kopiert:IOrientationSupplies a pitch value to the linkedLocalPlayer. The supplier is called every ClientTick and should return the pitch that the player should use.- Angegeben von:
supplyPitchin SchnittstelleIOrientation- Parameter:
pitchSupplier- The FloatSupplier for the pitch component
-
deinit
public void deinit()- Angegeben von:
deinitin SchnittstelleIDeserializable
-