Package net.minecraft.client.render
Class Camera
java.lang.Object
net.minecraft.client.render.Camera
@Environment(CLIENT) public class Camera extends Object
-
Field Summary
Fields Modifier and Type Field Description private BlockView
area
private BlockPos.Mutable
blockPos
private float
cameraY
private Vec3f
diagonalPlane
private Entity
focusedEntity
private Vec3f
horizontalPlane
private float
lastCameraY
private float
pitch
private Vec3d
pos
private boolean
ready
private Quaternion
rotation
private boolean
thirdPerson
private Vec3f
verticalPlane
private float
yaw
-
Constructor Summary
Constructors Constructor Description Camera()
-
Method Summary
Modifier and Type Method Description private double
clipToSpace(double desiredCameraDistance)
BlockPos
getBlockPos()
Entity
getFocusedEntity()
Vec3f
getHorizontalPlane()
float
getPitch()
Vec3d
getPos()
Quaternion
getRotation()
CameraSubmersionType
getSubmersionType()
Vec3f
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()
-
Field Details
-
ready
private boolean ready -
area
-
focusedEntity
-
pos
-
blockPos
-
horizontalPlane
-
verticalPlane
-
diagonalPlane
-
pitch
private float pitch -
yaw
private float yaw -
rotation
-
thirdPerson
private boolean thirdPerson -
cameraY
private float cameraY -
lastCameraY
private float lastCameraY
-
-
Constructor Details
-
Camera
public Camera()
-
-
Method Details
-
update
-
updateEyeHeight
public void updateEyeHeight() -
clipToSpace
private double clipToSpace(double desiredCameraDistance) -
moveBy
protected void moveBy(double x, double y, double z) -
setRotation
protected void setRotation(float yaw, float pitch) -
setPos
protected void setPos(double x, double y, double z) -
setPos
-
getPos
-
getBlockPos
-
getPitch
public float getPitch() -
getYaw
public float getYaw() -
getRotation
-
getFocusedEntity
-
isReady
public boolean isReady() -
isThirdPerson
public boolean isThirdPerson() -
getSubmersionType
-
getHorizontalPlane
-
getVerticalPlane
-
reset
public void reset()
-