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 BlockViewareaprivate BlockPos.MutableblockPosprivate floatcameraYprivate Vec3fdiagonalPlaneprivate EntityfocusedEntityprivate Vec3fhorizontalPlaneprivate floatlastCameraYprivate floatpitchprivate Vec3dposprivate booleanreadyprivate Quaternionrotationprivate booleanthirdPersonprivate Vec3fverticalPlaneprivate floatyaw -
Constructor Summary
Constructors Constructor Description Camera() -
Method Summary
Modifier and Type Method Description private doubleclipToSpace(double desiredCameraDistance)BlockPosgetBlockPos()EntitygetFocusedEntity()Vec3fgetHorizontalPlane()floatgetPitch()Vec3dgetPos()QuaterniongetRotation()CameraSubmersionTypegetSubmersionType()Vec3fgetVerticalPlane()floatgetYaw()booleanisReady()booleanisThirdPerson()protected voidmoveBy(double x, double y, double z)voidreset()protected voidsetPos(double x, double y, double z)protected voidsetPos(Vec3d pos)protected voidsetRotation(float yaw, float pitch)voidupdate(BlockView area, Entity focusedEntity, boolean thirdPerson, boolean inverseView, float tickDelta)voidupdateEyeHeight()
-
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()
-