Package net.minecraftforge.client.event
Class EntityViewRenderEvent.CameraSetup
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.EntityViewRenderEvent
net.minecraftforge.client.event.EntityViewRenderEvent.CameraSetup
- Enclosing class:
- EntityViewRenderEvent
Event that allows mods to alter the angles of the player's camera. Mainly useful for applying roll.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.EntityViewRenderEvent
EntityViewRenderEvent.CameraSetup, EntityViewRenderEvent.FogColors, EntityViewRenderEvent.FogDensity, EntityViewRenderEvent.FOVModifier, EntityViewRenderEvent.RenderFogEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCameraSetup
(GameRenderer renderer, ActiveRenderInfo info, double renderPartialTicks, float yaw, float pitch, float roll) -
Method Summary
Methods inherited from class net.minecraftforge.client.event.EntityViewRenderEvent
getInfo, getRenderer, getRenderPartialTicks
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
yaw
private float yaw -
pitch
private float pitch -
roll
private float roll
-
-
Constructor Details
-
CameraSetup
public CameraSetup(GameRenderer renderer, ActiveRenderInfo info, double renderPartialTicks, float yaw, float pitch, float roll)
-
-
Method Details
-
getYaw
public float getYaw() -
setYaw
public void setYaw(float yaw) -
getPitch
public float getPitch() -
setPitch
public void setPitch(float pitch) -
getRoll
public float getRoll() -
setRoll
public void setRoll(float roll)
-