类 ViewportEvent.ComputeFov

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

public static class ViewportEvent.ComputeFov extends ViewportEvent
Fired for altering the raw field of view (FOV). This is after the FOV settings are applied, and before modifiers such as the Nausea effect.

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.

另请参阅:
  • 字段详细资料

    • usedConfiguredFov

      private final boolean usedConfiguredFov
    • fov

      private float fov
  • 构造器详细资料

    • ComputeFov

      @Internal public ComputeFov(GameRenderer renderer, Camera camera, double renderPartialTicks, float fov, boolean usedConfiguredFov)
  • 方法详细资料

    • getFOV

      public float getFOV()
      返回 the raw field of view value。
      返回:
      the raw field of view value
    • setFOV

      public void setFOV(float fov)
      Sets the field of view value.
      参数:
      fov - the new FOV value
    • usedConfiguredFov

      public boolean usedConfiguredFov()
      返回 whether the base fov value started with a constant or was sourced from the fov set in the options。
      返回:
      whether the base fov value started with a constant or was sourced from the fov set in the options