Package net.minecraft.src
Class ActiveRenderInfo
java.lang.Object
net.minecraft.src.ActiveRenderInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic floatThe calculated view object X coordinatestatic floatThe calculated view object Y coordinatestatic floatThe calculated view object Z coordinatestatic floatThe X component of the entity's yaw rotationstatic floatThe Y component (scaled along the X axis) of the entity's pitch rotationstatic floatThe combined X and Z components of the entity's pitch rotationstatic floatThe Y component (scaled along the Z axis) of the entity's pitch rotationstatic floatThe Z component of the entity's yaw rotation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetBlockIdAtEntityViewpoint(World par0World, EntityLivingBase par1EntityLivingBase, float par2) Returns the block ID at the current camera location (either air or fluid), taking into account the height of fluid blocksstatic Vec3projectViewFromEntity(EntityLivingBase par0EntityLivingBase, double par1) Returns a vector representing the projection along the given entity's view for the given distancestatic voidupdateRenderInfo(EntityPlayer par0EntityPlayer, boolean par1) Updates the current render info and camera location based on entity look angles and 1st/3rd person view mode
-
Field Details
-
objectX
public static float objectXThe calculated view object X coordinate -
objectY
public static float objectYThe calculated view object Y coordinate -
objectZ
public static float objectZThe calculated view object Z coordinate -
rotationX
public static float rotationXThe X component of the entity's yaw rotation -
rotationXZ
public static float rotationXZThe combined X and Z components of the entity's pitch rotation -
rotationZ
public static float rotationZThe Z component of the entity's yaw rotation -
rotationYZ
public static float rotationYZThe Y component (scaled along the Z axis) of the entity's pitch rotation -
rotationXY
public static float rotationXYThe Y component (scaled along the X axis) of the entity's pitch rotation
-
-
Constructor Details
-
ActiveRenderInfo
public ActiveRenderInfo()
-
-
Method Details
-
updateRenderInfo
Updates the current render info and camera location based on entity look angles and 1st/3rd person view mode -
projectViewFromEntity
Returns a vector representing the projection along the given entity's view for the given distance -
getBlockIdAtEntityViewpoint
public static int getBlockIdAtEntityViewpoint(World par0World, EntityLivingBase par1EntityLivingBase, float par2) Returns the block ID at the current camera location (either air or fluid), taking into account the height of fluid blocks
-