@Environment(value=CLIENT) public class Camera extends Object
Modifier and Type | Field and Description |
---|---|
private BlockView |
area |
private BlockPos.Mutable |
blockPos |
private float |
cameraY |
private Vector3f |
diagonalPlane |
private Entity |
focusedEntity |
private Vector3f |
horizontalPlane |
private boolean |
inverseView |
private float |
lastCameraY |
private float |
pitch |
private Vec3d |
pos |
private boolean |
ready |
private Quaternion |
rotation |
private boolean |
thirdPerson |
private Vector3f |
verticalPlane |
private float |
yaw |
Constructor and Description |
---|
Camera() |
Modifier and Type | Method and Description |
---|---|
private double |
clipToSpace(double desiredCameraDistance) |
BlockPos |
getBlockPos() |
Entity |
getFocusedEntity() |
Vector3f |
getHorizontalPlane() |
float |
getPitch() |
Vec3d |
getPos() |
Quaternion |
getRotation() |
FluidState |
getSubmergedFluidState() |
Vector3f |
getVerticalPlane() |
float |
getYaw() |
boolean |
isReady() |
boolean |
isThirdPerson() |
protected void |
moveBy(double x,
double y,
double z) |
void |
reset() |
protected void |
setPos(double x,
double y,
double z) |
protected void |
setPos(Vec3d pos) |
protected void |
setRotation(float yaw,
float pitch) |
void |
update(BlockView area,
Entity focusedEntity,
boolean thirdPerson,
boolean inverseView,
float tickDelta) |
void |
updateEyeHeight() |
private boolean ready
private BlockView area
private Entity focusedEntity
private Vec3d pos
private final BlockPos.Mutable blockPos
private final Vector3f horizontalPlane
private final Vector3f verticalPlane
private final Vector3f diagonalPlane
private float pitch
private float yaw
private final Quaternion rotation
private boolean thirdPerson
private boolean inverseView
private float cameraY
private float lastCameraY
public void update(BlockView area, Entity focusedEntity, boolean thirdPerson, boolean inverseView, float tickDelta)
public void updateEyeHeight()
private double clipToSpace(double desiredCameraDistance)
protected void moveBy(double x, double y, double z)
protected void setRotation(float yaw, float pitch)
protected void setPos(double x, double y, double z)
protected void setPos(Vec3d pos)
public Vec3d getPos()
public BlockPos getBlockPos()
public float getPitch()
public float getYaw()
public Quaternion getRotation()
public Entity getFocusedEntity()
public boolean isReady()
public boolean isThirdPerson()
public FluidState getSubmergedFluidState()
public final Vector3f getHorizontalPlane()
public final Vector3f getVerticalPlane()
public void reset()