Package net.minecraft.client.render
Class Camera
java.lang.Object
net.minecraft.client.render.Camera
@Environment(CLIENT) public class Camera extends Object
- Mappings:
Namespace Name official dpv
intermediary net/minecraft/class_4184
named net/minecraft/client/render/Camera
-
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- Mappings:
Namespace Name Mixin selector official a
Ldpv;a:Z
intermediary field_18709
Lnet/minecraft/class_4184;field_18709:Z
named ready
Lnet/minecraft/client/render/Camera;ready:Z
-
area
- Mappings:
Namespace Name Mixin selector official b
Ldpv;b:Lbsz;
intermediary field_18710
Lnet/minecraft/class_4184;field_18710:Lnet/minecraft/class_1922;
named area
Lnet/minecraft/client/render/Camera;area:Lnet/minecraft/world/BlockView;
-
focusedEntity
- Mappings:
Namespace Name Mixin selector official c
Ldpv;c:Laqv;
intermediary field_18711
Lnet/minecraft/class_4184;field_18711:Lnet/minecraft/class_1297;
named focusedEntity
Lnet/minecraft/client/render/Camera;focusedEntity:Lnet/minecraft/entity/Entity;
-
pos
- Mappings:
Namespace Name Mixin selector official d
Ldpv;d:Ldiu;
intermediary field_18712
Lnet/minecraft/class_4184;field_18712:Lnet/minecraft/class_243;
named pos
Lnet/minecraft/client/render/Camera;pos:Lnet/minecraft/util/math/Vec3d;
-
blockPos
- Mappings:
Namespace Name Mixin selector official e
Ldpv;e:Lfx$a;
intermediary field_18713
Lnet/minecraft/class_4184;field_18713:Lnet/minecraft/class_2338$class_2339;
named blockPos
Lnet/minecraft/client/render/Camera;blockPos:Lnet/minecraft/util/math/BlockPos$Mutable;
-
horizontalPlane
- Mappings:
Namespace Name Mixin selector official f
Ldpv;f:Lg;
intermediary field_18714
Lnet/minecraft/class_4184;field_18714:Lnet/minecraft/class_1160;
named horizontalPlane
Lnet/minecraft/client/render/Camera;horizontalPlane:Lnet/minecraft/util/math/Vec3f;
-
verticalPlane
- Mappings:
Namespace Name Mixin selector official g
Ldpv;g:Lg;
intermediary field_18715
Lnet/minecraft/class_4184;field_18715:Lnet/minecraft/class_1160;
named verticalPlane
Lnet/minecraft/client/render/Camera;verticalPlane:Lnet/minecraft/util/math/Vec3f;
-
diagonalPlane
- Mappings:
Namespace Name Mixin selector official h
Ldpv;h:Lg;
intermediary field_18716
Lnet/minecraft/class_4184;field_18716:Lnet/minecraft/class_1160;
named diagonalPlane
Lnet/minecraft/client/render/Camera;diagonalPlane:Lnet/minecraft/util/math/Vec3f;
-
pitch
private float pitch- Mappings:
Namespace Name Mixin selector official i
Ldpv;i:F
intermediary field_18717
Lnet/minecraft/class_4184;field_18717:F
named pitch
Lnet/minecraft/client/render/Camera;pitch:F
-
yaw
private float yaw- Mappings:
Namespace Name Mixin selector official j
Ldpv;j:F
intermediary field_18718
Lnet/minecraft/class_4184;field_18718:F
named yaw
Lnet/minecraft/client/render/Camera;yaw:F
-
rotation
- Mappings:
Namespace Name Mixin selector official k
Ldpv;k:Ld;
intermediary field_21518
Lnet/minecraft/class_4184;field_21518:Lnet/minecraft/class_1158;
named rotation
Lnet/minecraft/client/render/Camera;rotation:Lnet/minecraft/util/math/Quaternion;
-
thirdPerson
private boolean thirdPerson- Mappings:
Namespace Name Mixin selector official l
Ldpv;l:Z
intermediary field_18719
Lnet/minecraft/class_4184;field_18719:Z
named thirdPerson
Lnet/minecraft/client/render/Camera;thirdPerson:Z
-
cameraY
private float cameraY- Mappings:
Namespace Name Mixin selector official m
Ldpv;m:F
intermediary field_18721
Lnet/minecraft/class_4184;field_18721:F
named cameraY
Lnet/minecraft/client/render/Camera;cameraY:F
-
lastCameraY
private float lastCameraY- Mappings:
Namespace Name Mixin selector official n
Ldpv;n:F
intermediary field_18722
Lnet/minecraft/class_4184;field_18722:F
named lastCameraY
Lnet/minecraft/client/render/Camera;lastCameraY:F
-
-
Constructor Details
-
Camera
public Camera()
-
-
Method Details
-
update
public void update(BlockView area, Entity focusedEntity, boolean thirdPerson, boolean inverseView, float tickDelta)- Mappings:
Namespace Name Mixin selector official a
Ldpv;a(Lbsz;Laqv;ZZF)V
intermediary method_19321
Lnet/minecraft/class_4184;method_19321(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;ZZF)V
named update
Lnet/minecraft/client/render/Camera;update(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;ZZF)V
-
updateEyeHeight
public void updateEyeHeight()- Mappings:
Namespace Name Mixin selector official a
Ldpv;a()V
intermediary method_19317
Lnet/minecraft/class_4184;method_19317()V
named updateEyeHeight
Lnet/minecraft/client/render/Camera;updateEyeHeight()V
-
clipToSpace
private double clipToSpace(double desiredCameraDistance)- Mappings:
Namespace Name Mixin selector official a
Ldpv;a(D)D
intermediary method_19318
Lnet/minecraft/class_4184;method_19318(D)D
named clipToSpace
Lnet/minecraft/client/render/Camera;clipToSpace(D)D
-
moveBy
protected void moveBy(double x, double y, double z)- Mappings:
Namespace Name Mixin selector official a
Ldpv;a(DDD)V
intermediary method_19324
Lnet/minecraft/class_4184;method_19324(DDD)V
named moveBy
Lnet/minecraft/client/render/Camera;moveBy(DDD)V
-
setRotation
protected void setRotation(float yaw, float pitch)- Mappings:
Namespace Name Mixin selector official a
Ldpv;a(FF)V
intermediary method_19325
Lnet/minecraft/class_4184;method_19325(FF)V
named setRotation
Lnet/minecraft/client/render/Camera;setRotation(FF)V
-
setPos
protected void setPos(double x, double y, double z)- Mappings:
Namespace Name Mixin selector official b
Ldpv;b(DDD)V
intermediary method_19327
Lnet/minecraft/class_4184;method_19327(DDD)V
named setPos
Lnet/minecraft/client/render/Camera;setPos(DDD)V
-
setPos
- Mappings:
Namespace Name Mixin selector official a
Ldpv;a(Ldiu;)V
intermediary method_19322
Lnet/minecraft/class_4184;method_19322(Lnet/minecraft/class_243;)V
named setPos
Lnet/minecraft/client/render/Camera;setPos(Lnet/minecraft/util/math/Vec3d;)V
-
getPos
- Mappings:
Namespace Name Mixin selector official b
Ldpv;b()Ldiu;
intermediary method_19326
Lnet/minecraft/class_4184;method_19326()Lnet/minecraft/class_243;
named getPos
Lnet/minecraft/client/render/Camera;getPos()Lnet/minecraft/util/math/Vec3d;
-
getBlockPos
- Mappings:
Namespace Name Mixin selector official c
Ldpv;c()Lfx;
intermediary method_19328
Lnet/minecraft/class_4184;method_19328()Lnet/minecraft/class_2338;
named getBlockPos
Lnet/minecraft/client/render/Camera;getBlockPos()Lnet/minecraft/util/math/BlockPos;
-
getPitch
public float getPitch()- Mappings:
Namespace Name Mixin selector official d
Ldpv;d()F
intermediary method_19329
Lnet/minecraft/class_4184;method_19329()F
named getPitch
Lnet/minecraft/client/render/Camera;getPitch()F
-
getYaw
public float getYaw()- Mappings:
Namespace Name Mixin selector official e
Ldpv;e()F
intermediary method_19330
Lnet/minecraft/class_4184;method_19330()F
named getYaw
Lnet/minecraft/client/render/Camera;getYaw()F
-
getRotation
- Mappings:
Namespace Name Mixin selector official f
Ldpv;f()Ld;
intermediary method_23767
Lnet/minecraft/class_4184;method_23767()Lnet/minecraft/class_1158;
named getRotation
Lnet/minecraft/client/render/Camera;getRotation()Lnet/minecraft/util/math/Quaternion;
-
getFocusedEntity
- Mappings:
Namespace Name Mixin selector official g
Ldpv;g()Laqv;
intermediary method_19331
Lnet/minecraft/class_4184;method_19331()Lnet/minecraft/class_1297;
named getFocusedEntity
Lnet/minecraft/client/render/Camera;getFocusedEntity()Lnet/minecraft/entity/Entity;
-
isReady
public boolean isReady()- Mappings:
Namespace Name Mixin selector official h
Ldpv;h()Z
intermediary method_19332
Lnet/minecraft/class_4184;method_19332()Z
named isReady
Lnet/minecraft/client/render/Camera;isReady()Z
-
isThirdPerson
public boolean isThirdPerson()- Mappings:
Namespace Name Mixin selector official i
Ldpv;i()Z
intermediary method_19333
Lnet/minecraft/class_4184;method_19333()Z
named isThirdPerson
Lnet/minecraft/client/render/Camera;isThirdPerson()Z
-
getSubmersionType
- Mappings:
Namespace Name Mixin selector official j
Ldpv;j()Ldan;
intermediary method_19334
Lnet/minecraft/class_4184;method_19334()Lnet/minecraft/class_5636;
named getSubmersionType
Lnet/minecraft/client/render/Camera;getSubmersionType()Lnet/minecraft/client/render/CameraSubmersionType;
-
getHorizontalPlane
- Mappings:
Namespace Name Mixin selector official k
Ldpv;k()Lg;
intermediary method_19335
Lnet/minecraft/class_4184;method_19335()Lnet/minecraft/class_1160;
named getHorizontalPlane
Lnet/minecraft/client/render/Camera;getHorizontalPlane()Lnet/minecraft/util/math/Vec3f;
-
getVerticalPlane
- Mappings:
Namespace Name Mixin selector official l
Ldpv;l()Lg;
intermediary method_19336
Lnet/minecraft/class_4184;method_19336()Lnet/minecraft/class_1160;
named getVerticalPlane
Lnet/minecraft/client/render/Camera;getVerticalPlane()Lnet/minecraft/util/math/Vec3f;
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector official n
Ldpv;n()V
intermediary method_19337
Lnet/minecraft/class_4184;method_19337()V
named reset
Lnet/minecraft/client/render/Camera;reset()V
-