net.minecraft.client.render

public class Camera

implements TrackedWaypoint$YawProvider

net.minecraft.client.Camera
net.minecraft.class_4184
net.minecraft.client.render.Camera

Field summary

Modifier and TypeField
public static final float
PROJECTION_Z_NEAR
field_1_1698
NEAR_PLANE_DISTANCE
private static final float
DEFAULT_CAMERA_DISTANCE
field_47841
BASE_CAMERA_DISTANCE
private static final org.joml.Vector3fc
FORWARDS
field_52123
HORIZONTAL
private static final org.joml.Vector3fc
UP
field_52124
VERTICAL
private static final org.joml.Vector3fc
LEFT
field_52125
DIAGONAL
public static final float
BASE_HUD_FOV
field_1_1695
DEFAULT_HUD_FOV
private boolean
initialized
field_18709
ready
private World
level
field_18710
area
private Entity
entity
field_18711
focusedEntity
private Vec3d
position
field_18712
pos
private final BlockPos$Mutable
blockPosition
field_18713
blockPos
private final org.joml.Vector3f
forwards
field_18714
horizontalPlane
private final org.joml.Vector3f
panoramicForwards
field_1_1713
panoramaHorizontalPlane
private final org.joml.Vector3f
up
field_18715
verticalPlane
private final org.joml.Vector3f
left
field_18716
diagonalPlane
private float
xRot
field_18717
pitch
private float
yRot
field_18718
yaw
private final org.joml.Quaternionf
rotation
field_21518
rotation
private boolean
detached
field_18719
thirdPerson
private float
eyeHeight
field_18721
cameraY
private float
eyeHeightOld
field_18722
lastCameraY
private final ProjectionMatrix3
projection
field_1_1714
projection
private Frustum
cullFrustum
field_1_1703
frustum
private Frustum
capturedFrustum
field_1_1702
capturedFrustum
private boolean
captureFrustum
field_1_1701
captureFrustumRequested
private final org.joml.Matrix4f
cachedViewRotMatrix
field_1_1699
rotationMatrix
private final org.joml.Matrix4f
cachedViewRotProjMatrix
field_1_1700
projectionMatrix
private long
lastProjectionVersion
field_1_1709
projectionMatrixLastQueriedAt
private int
matrixPropertiesDirty
field_1_1710
updateFlags
private static final int
DIRTY_VIEW_ROT
field_1_1696
FLAG_ROTATION_MATRIX_DIRTY
private static final int
DIRTY_VIEW_ROT_PROJ
field_1_1697
FLAG_PROJECTION_MATRIX_DIRTY
private float
fovModifier
field_1_1706
fovMultiplier
private float
oldFovModifier
field_1_1712
lastFovMultiplier
private float
fov
field_1_1705
fov
private float
hudFov
field_1_1707
hudFov
private float
depthFar
field_1_1704
farPlaneDistance
private boolean
isPanoramicMode
field_1_1708
panoramaMode
private final EnvironmentAttributeInterpolator
attributeProbe
field_63830
environmentAttributeInterpolator
private final MinecraftClient
minecraft
field_1_1711
client

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public void
tick()
method_19317()
updateEyeHeight()
public void
update(DeltaTracker deltaTracker)
method_1_2116(class_9779 arg0)
tick(RenderTickCounter renderTickCounter)
public float
getCameraEntityPartialTicks(DeltaTracker deltaTracker)
method_1_2452(class_9779 arg0)
getTickProgressForFocusedEntity(RenderTickCounter renderTickCounter)
public void
extractRenderState(CameraRenderState cameraState, float cameraEntityPartialTicks)
method_1_2101(class_12075 arg0, float arg1)
updateRenderState(CameraRenderState renderState, float tickProgress)
private void
tickFov()
method_1_2115()
updateFovMultiplier()
private org.joml.Matrix4f
createProjectionMatrixForCulling()
method_1_2098()
getPerspectiveMatrix()
public Frustum
getCullFrustum()
method_1_2103()
getFrustum()
private void
prepareCullFrustum(org.joml.Matrix4fc modelViewMatrix, org.joml.Matrix4f projectionMatrixForCulling, Vec3 cameraPos)
method_1_2110(org.joml.Matrix4fc arg0, org.joml.Matrix4f arg1, class_243 arg2)
updateFrustum(org.joml.Matrix4fc positionMatrix, org.joml.Matrix4f projectionMatrix, Vec3d pos)
public Frustum
getCapturedFrustum()
method_1_2102()
getCapturedFrustum()
public void
captureFrustum()
method_1_2097()
captureFrustum()
public void
killFrustum()
method_1_2107()
killFrustum()
private float
calculateFov(float partialTicks)
method_1_2095(float arg0)
getFov(float tickProgress)
private float
calculateHudFov(float partialTicks)
method_1_2096(float arg0)
getHudFov(float tickProgress)
private float
modifyFovBasedOnDeathOrFluid(float partialTicks, float fov)
method_1_2108(float arg0, float arg1)
applyFovEffects(float tickProgress, float fov)
private void
alignWithEntity(float partialTicks)
method_1_2094(float arg0)
setPositionAndRotation(float tickProgress)
private float
getMaxZoom(float cameraDist)
method_19318(float arg0)
clipToSpace(float distance)
public boolean
isPanoramicMode()
method_1_2106()
isInPanoramaMode()
public float
getFov()
method_55437()
getFov()
private void
setupPerspective(float zNear, float zFar, float fov, float width, float height)
method_1_2114(float arg0, float arg1, float arg2, float arg3, float arg4)
setToPerspective(float nearZ, float farZ, float fov, float width, float height)
private void
setupOrtho(float zNear, float zFar, float width, float height, boolean invertY)
method_1_2113(float arg0, float arg1, float arg2, float arg3, boolean arg4)
setToOrthrographic(float nearZ, float farZ, float width, float height, boolean invertY)
protected void
move(float forwards, float up, float right)
method_19324(float arg0, float arg1, float arg2)
moveBy(float surge, float heave, float sway)
protected void
setRotation(float yRot, float xRot)
method_19325(float arg0, float arg1)
setRotation(float yaw, float pitch)
protected void
setPosition(double x, double y, double z)
method_19327(double arg0, double arg1, double arg2)
setPos(double x, double y, double z)
protected void
setPosition(Vec3 position)
method_19322(class_243 arg0)
setPos(Vec3d pos)
public Vec3d
position()
method_71156()
getCameraPos()
public BlockPos
blockPosition()
method_19328()
getBlockPos()
public float
xRot()
method_19329()
getPitch()
public float
yRot()
method_19330()
getYaw()
public float
yaw()
method_71155()
getCameraYaw()
public org.joml.Quaternionf
rotation()
method_23767()
getRotation()
public org.joml.Matrix4f
getViewRotationMatrix(org.joml.Matrix4f dest)
method_1_2104(org.joml.Matrix4f arg0)
getRotationMatrix(org.joml.Matrix4f matrixOut)
public org.joml.Matrix4f
getViewRotationProjectionMatrix(org.joml.Matrix4f dest)
method_1_2105(org.joml.Matrix4f arg0)
getProjectionMatrix(org.joml.Matrix4f matrixOut)
public Entity
entity()
method_19331()
getFocusedEntity()
public void
setEntity(Entity entity)
method_1_2111(class_1297 arg0)
setFocusedEntity(Entity focusedEntity)
public boolean
isInitialized()
method_19332()
isReady()
public boolean
isDetached()
method_19333()
isThirdPerson()
public EnvironmentAttributeInterpolator
attributeProbe()
method_75756()
getEnvironmentAttributeInterpolator()
public Camera$Projection
getNearPlane(float fov)
method_36425(float arg0)
getProjection(float fov)
public CameraSubmersionType
getFluidInCamera()
method_19334()
getSubmersionType()
public org.joml.Vector3fc
forwardVector()
method_19335()
getHorizontalPlane()
public org.joml.Vector3fc
panoramicForwards()
method_1_2109()
getPanoramaHorizontalPlane()
public org.joml.Vector3fc
upVector()
method_19336()
getVerticalPlane()
public org.joml.Vector3fc
leftVector()
method_35689()
getDiagonalPlane()
public void
reset()
method_19337()
reset()
public void
setLevel(ClientLevel level)
method_1_2112(class_638 arg0)
setArea(ClientWorld area)
public void
enablePanoramicMode()
method_1_2100()
setPanoramaMode()
public void
disablePanoramicMode()
method_1_2099()
revokePanoramaMode()