类 ViewportEvent.ComputeCameraAngles

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ViewportEvent
net.minecraftforge.client.event.ViewportEvent.ComputeCameraAngles
封闭类:
ViewportEvent

public static class ViewportEvent.ComputeCameraAngles extends ViewportEvent
Fired to allow altering the angles of the player's camera. This can be used to alter the player's view for different effects, such as applying roll.

This event is not cancellable, and does not have a result.

This event is fired on the main Forge event bus, only on the logical client.

  • 字段详细资料

    • yaw

      private float yaw
    • pitch

      private float pitch
    • roll

      private float roll
  • 构造器详细资料

    • ComputeCameraAngles

      @Internal public ComputeCameraAngles(GameRenderer renderer, Camera camera, double renderPartialTicks, float yaw, float pitch, float roll)
  • 方法详细资料

    • getYaw

      public float getYaw()
      返回 the yaw of the player's camera。
      返回:
      the yaw of the player's camera
    • setYaw

      public void setYaw(float yaw)
      Sets the yaw of the player's camera.
      参数:
      yaw - the new yaw
    • getPitch

      public float getPitch()
      返回 the pitch of the player's camera。
      返回:
      the pitch of the player's camera
    • setPitch

      public void setPitch(float pitch)
      Sets the pitch of the player's camera.
      参数:
      pitch - the new pitch
    • getRoll

      public float getRoll()
      返回 the roll of the player's camera。
      返回:
      the roll of the player's camera
    • setRoll

      public void setRoll(float roll)
      Sets the roll of the player's camera.
      参数:
      roll - the new roll