Schnittstelle IOrientation

Alle bekannten Implementierungsklassen:
Orientation

public interface IOrientation
  • 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
    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.
  • Methodendetails

    • setRotation

      void setRotation(float yaw, float pitch)
      Sets the rotation of the linked LocalPlayer
      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 linked LocalPlayer
      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

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

      void setYaw(float yaw)
      Sets the yaw (left/right looking) of the linked LocalPlayer.
      Parameter:
      yaw - The new yaw value
    • addYaw

      void addYaw(float yaw)
      Adds to the yaw (left/right looking) of the linked LocalPlayer.
      Parameter:
      yaw - The yaw delta to add
    • supplyYaw

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

      void setPitch(float pitch)
      Sets the pitch (up/down looking) of the linked LocalPlayer.
      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 linked LocalPlayer.
      Parameter:
      pitch - The pitch delta to add, expected in the interval [-90;90]
    • supplyPitch

      void supplyPitch(Supplier<Float> pitchSupplier)
      Supplies a pitch value to the linked LocalPlayer. The supplier is called every ClientTick and should return the pitch that the player should use.
      Parameter:
      pitchSupplier - The FloatSupplier for the pitch component