Klasse Orientation

java.lang.Object
net.actor.impl.Orientation
Alle implementierten Schnittstellen:
IOrientation, IDeserializable

@Internal public class Orientation extends Object implements IOrientation, IDeserializable
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    addPitch(float pitch)
    Adds to the pitch (up/down looking) of the linked LocalPlayer.
    void
    addRotation(float yaw, float pitch)
    Adds to the rotation of the linked LocalPlayer
    void
    addYaw(float yaw)
    Adds to the yaw (left/right looking) of the linked LocalPlayer.
    void
     
    void
    setPitch(float pitch)
    Sets the pitch (up/down looking) of the linked LocalPlayer.
    void
    setRotation(float yaw, float pitch)
    Sets the rotation of the linked LocalPlayer
    void
    setYaw(float yaw)
    Sets the yaw (left/right looking) of the linked LocalPlayer.
    void
    supplyPitch(Supplier<Float> pitchSupplier)
    Supplies a pitch value to the linked LocalPlayer.
    void
    supplyRotation(Supplier<Float> yawSupplier, Supplier<Float> pitchSupplier)
    Supplies a Rotation to the linked LocalPlayer.
    void
    supplyYaw(Supplier<Float> yawSupplier)
    Supplies a yaw value to the linked LocalPlayer.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • Orientation

      public Orientation(IActor actor)
  • Methodendetails

    • setRotation

      public void setRotation(float yaw, float pitch)
      Beschreibung aus Schnittstelle kopiert: IOrientation
      Sets the rotation of the linked LocalPlayer
      Angegeben von:
      setRotation in Schnittstelle IOrientation
      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: IOrientation
      Adds to the rotation of the linked LocalPlayer
      Angegeben von:
      addRotation in Schnittstelle IOrientation
      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

      public void supplyRotation(Supplier<Float> yawSupplier, Supplier<Float> pitchSupplier)
      Beschreibung aus Schnittstelle kopiert: IOrientation
      Supplies a Rotation to the linked LocalPlayer. The suppliers are called every ClientTick and should return the rotation that the LocalPlayer should use
      Angegeben von:
      supplyRotation in Schnittstelle IOrientation
      Parameter:
      yawSupplier - The FloatSupplier for the yaw component of the rotation
      pitchSupplier - The FloatSupplier for the pitch component of the rotation
    • setYaw

      public void setYaw(float yaw)
      Beschreibung aus Schnittstelle kopiert: IOrientation
      Sets the yaw (left/right looking) of the linked LocalPlayer.
      Angegeben von:
      setYaw in Schnittstelle IOrientation
      Parameter:
      yaw - The new yaw value
    • addYaw

      public void addYaw(float yaw)
      Beschreibung aus Schnittstelle kopiert: IOrientation
      Adds to the yaw (left/right looking) of the linked LocalPlayer.
      Angegeben von:
      addYaw in Schnittstelle IOrientation
      Parameter:
      yaw - The yaw delta to add
    • supplyYaw

      public void supplyYaw(Supplier<Float> yawSupplier)
      Beschreibung aus Schnittstelle kopiert: IOrientation
      Supplies a yaw value to the linked LocalPlayer. The supplier is called every ClientTick and should return the yaw that the LocalPlayer should use.
      Angegeben von:
      supplyYaw in Schnittstelle IOrientation
      Parameter:
      yawSupplier - The FloatSupplier for the yaw component
    • setPitch

      public void setPitch(float pitch)
      Beschreibung aus Schnittstelle kopiert: IOrientation
      Sets the pitch (up/down looking) of the linked LocalPlayer.
      Angegeben von:
      setPitch in Schnittstelle IOrientation
      Parameter:
      pitch - The new pitch value, expected in the interval [-90;90]
    • addPitch

      public void addPitch(float pitch)
      Beschreibung aus Schnittstelle kopiert: IOrientation
      Adds to the pitch (up/down looking) of the linked LocalPlayer.
      Angegeben von:
      addPitch in Schnittstelle IOrientation
      Parameter:
      pitch - The pitch delta to add, expected in the interval [-90;90]
    • supplyPitch

      public void supplyPitch(Supplier<Float> pitchSupplier)
      Beschreibung aus Schnittstelle kopiert: IOrientation
      Supplies a pitch value to the linked LocalPlayer. The supplier is called every ClientTick and should return the pitch that the player should use.
      Angegeben von:
      supplyPitch in Schnittstelle IOrientation
      Parameter:
      pitchSupplier - The FloatSupplier for the pitch component
    • deinit

      public void deinit()
      Angegeben von:
      deinit in Schnittstelle IDeserializable