类 ComputeFovModifierEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ComputeFovModifierEvent

public class ComputeFovModifierEvent extends net.minecraftforge.eventbus.api.Event
Fired after the field of vision (FOV) modifier for the player is calculated to allow developers to adjust it further.

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.

另请参阅:
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final float
     
    private float
     
    private final Player
     
    private final float
     
  • 构造器概要

    构造器
    构造器
    说明
    ComputeFovModifierEvent(Player player, float fovModifier, float scale)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    float
    返回 the original field of vision (FOV) of the player, before any modifications or interpolation。
    float
    返回 the current field of vision (FOV) of the player。
    返回 the player affected by this event。
    float
     
    void
    setNewFovModifier(float newFovModifier)
    Sets the new field of vision (FOV) of the player.

    从类继承的方法 net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • player

      private final Player player
    • fovModifier

      private final float fovModifier
    • scale

      private final float scale
    • newFovModifier

      private float newFovModifier
  • 构造器详细资料

    • ComputeFovModifierEvent

      @Internal public ComputeFovModifierEvent(Player player, float fovModifier, float scale)
  • 方法详细资料

    • getPlayer

      public Player getPlayer()
      返回 the player affected by this event。
      返回:
      the player affected by this event
    • getFovModifier

      public float getFovModifier()
      返回 the original field of vision (FOV) of the player, before any modifications or interpolation。
      返回:
      the original field of vision (FOV) of the player, before any modifications or interpolation
    • getScale

      public float getScale()
    • getNewFovModifier

      public float getNewFovModifier()
      返回 the current field of vision (FOV) of the player。
      返回:
      the current field of vision (FOV) of the player
    • setNewFovModifier

      public void setNewFovModifier(float newFovModifier)
      Sets the new field of vision (FOV) of the player.
      参数:
      newFovModifier - the new field of vision (FOV)