类 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
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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
getScale()
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
-
字段详细资料
-
player
-
fovModifier
private final float fovModifier -
scale
private final float scale -
newFovModifier
private float newFovModifier
-
-
构造器详细资料
-
ComputeFovModifierEvent
-
-
方法详细资料
-
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)
-