类 ViewportEvent.ComputeCameraAngles
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ViewportEvent
net.minecraftforge.client.event.ViewportEvent.ComputeCameraAngles
- 封闭类:
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.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.client.event.ViewportEvent
ViewportEvent.ComputeCameraAngles, ViewportEvent.ComputeFogColor, ViewportEvent.ComputeFov, ViewportEvent.RenderFog
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器构造器说明ComputeCameraAngles
(GameRenderer renderer, Camera camera, double renderPartialTicks, float yaw, float pitch, float roll) -
方法概要
修饰符和类型方法说明float
getPitch()
返回 the pitch of the player's camera。float
getRoll()
返回 the roll of the player's camera。float
getYaw()
返回 the yaw of the player's camera。void
setPitch
(float pitch) Sets the pitch of the player's camera.void
setRoll
(float roll) Sets the roll of the player's camera.void
setYaw
(float yaw) Sets the yaw of the player's camera.从类继承的方法 net.minecraftforge.client.event.ViewportEvent
getCamera, getPartialTick, getRenderer
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
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
-