public class ActiveRenderInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.nio.FloatBuffer |
MODELVIEW
The current GL modelview matrix
|
private static java.nio.FloatBuffer |
OBJECTCOORDS
The computed view object coordinates
|
private static Vec3 |
position |
private static java.nio.FloatBuffer |
PROJECTION
The current GL projection matrix
|
private static float |
rotationX
The X component of the entity's yaw rotation
|
private static float |
rotationXY
The Y component (scaled along the X axis) of the entity's pitch rotation
|
private static float |
rotationXZ
The combined X and Z components of the entity's pitch rotation
|
private static float |
rotationYZ
The Y component (scaled along the Z axis) of the entity's pitch rotation
|
private static float |
rotationZ
The Z component of the entity's yaw rotation
|
private static java.nio.IntBuffer |
VIEWPORT
The current GL viewport
|
Constructor and Description |
---|
ActiveRenderInfo() |
Modifier and Type | Method and Description |
---|---|
static Block |
getBlockAtEntityViewpoint(World worldIn,
Entity p_180786_1_,
float p_180786_2_) |
static Vec3 |
getPosition() |
static float |
getRotationX() |
static float |
getRotationXY() |
static float |
getRotationXZ() |
static float |
getRotationYZ() |
static float |
getRotationZ() |
static Vec3 |
projectViewFromEntity(Entity p_178806_0_,
double p_178806_1_) |
static void |
updateRenderInfo(EntityPlayer entityplayerIn,
boolean p_74583_1_)
Updates the current render info and camera location based on entity look angles and 1st/3rd person view mode
|
private static final java.nio.IntBuffer VIEWPORT
private static final java.nio.FloatBuffer MODELVIEW
private static final java.nio.FloatBuffer PROJECTION
private static final java.nio.FloatBuffer OBJECTCOORDS
private static Vec3 position
private static float rotationX
private static float rotationXZ
private static float rotationZ
private static float rotationYZ
private static float rotationXY
public static void updateRenderInfo(EntityPlayer entityplayerIn, boolean p_74583_1_)
public static Vec3 projectViewFromEntity(Entity p_178806_0_, double p_178806_1_)
public static Block getBlockAtEntityViewpoint(World worldIn, Entity p_180786_1_, float p_180786_2_)
public static Vec3 getPosition()
public static float getRotationX()
public static float getRotationXZ()
public static float getRotationZ()
public static float getRotationYZ()
public static float getRotationXY()