public class ActiveRenderInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private BlockPos.Mutable |
blockPos |
private float |
height |
private Vector3f |
left |
private Vector3f |
look |
private float |
pitch |
private Vec3d |
pos |
private float |
previousHeight |
private Entity |
renderViewEntity |
private Quaternion |
rotation |
private boolean |
thirdPerson |
private boolean |
thirdPersonReverse |
private Vector3f |
up |
private boolean |
valid |
private IBlockReader |
world |
private float |
yaw |
Constructor and Description |
---|
ActiveRenderInfo() |
Modifier and Type | Method and Description |
---|---|
private double |
calcCameraDistance(double startingDistance) |
void |
clear() |
BlockState |
getBlockAtCamera() |
BlockPos |
getBlockPos() |
IFluidState |
getFluidState() |
float |
getPitch() |
Vec3d |
getProjectedView() |
Entity |
getRenderViewEntity() |
Quaternion |
getRotation() |
Vector3f |
getUpVector() |
Vector3f |
getViewVector() |
float |
getYaw() |
void |
interpolateHeight() |
boolean |
isThirdPerson() |
boolean |
isValid() |
protected void |
movePosition(double distanceOffset,
double verticalOffset,
double horizontalOffset) |
void |
setAnglesInternal(float yaw,
float pitch) |
protected void |
setDirection(float pitchIn,
float yawIn) |
protected void |
setPosition(double x,
double y,
double z) |
protected void |
setPostion(Vec3d posIn) |
void |
update(IBlockReader worldIn,
Entity renderViewEntity,
boolean thirdPersonIn,
boolean thirdPersonReverseIn,
float partialTicks) |
private boolean valid
private IBlockReader world
private Entity renderViewEntity
private Vec3d pos
private final BlockPos.Mutable blockPos
private final Vector3f look
private final Vector3f up
private final Vector3f left
private float pitch
private float yaw
private final Quaternion rotation
private boolean thirdPerson
private boolean thirdPersonReverse
private float height
private float previousHeight
public void update(IBlockReader worldIn, Entity renderViewEntity, boolean thirdPersonIn, boolean thirdPersonReverseIn, float partialTicks)
public void interpolateHeight()
private double calcCameraDistance(double startingDistance)
protected void movePosition(double distanceOffset, double verticalOffset, double horizontalOffset)
protected void setDirection(float pitchIn, float yawIn)
protected void setPosition(double x, double y, double z)
protected void setPostion(Vec3d posIn)
public Vec3d getProjectedView()
public BlockPos getBlockPos()
public float getPitch()
public float getYaw()
public Quaternion getRotation()
public Entity getRenderViewEntity()
public boolean isValid()
public boolean isThirdPerson()
public IFluidState getFluidState()
public final Vector3f getViewVector()
public final Vector3f getUpVector()
public void clear()
public void setAnglesInternal(float yaw, float pitch)
public BlockState getBlockAtCamera()