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.FieldOfView, EntityViewRenderEvent.FogColors, EntityViewRenderEvent.FogDensity, 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, Camera camera, double renderPartialTicks, float yaw, float pitch, float roll) -
Method Summary
Methods inherited from class net.minecraftforge.client.event.EntityViewRenderEvent
getCamera, getPartialTicks, getRenderer
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, Camera camera, 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)
-