Package net.minecraft.client
Class Camera
java.lang.Object
net.minecraft.client.Camera
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockPos.MutableBlockPos
private boolean
private Entity
private float
private float
static final float
private final org.joml.Vector3f
private boolean
private final org.joml.Vector3f
private BlockGetter
private float
private Vec3
private final org.joml.Quaternionf
private final org.joml.Vector3f
private float
private float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal org.joml.Vector3f
final org.joml.Vector3f
private double
getMaxZoom
(double p_90567_) float
final org.joml.Vector3f
float
getXRot()
float
getYRot()
boolean
boolean
protected void
move
(double p_90569_, double p_90570_, double p_90571_) void
reset()
org.joml.Quaternionf
rotation()
void
setAnglesInternal
(float yaw, float pitch) protected void
setPosition
(double p_90585_, double p_90586_, double p_90587_) protected void
setPosition
(Vec3 p_90582_) protected void
setRotation
(float p_90573_, float p_90574_) void
setup
(BlockGetter p_90576_, Entity p_90577_, boolean p_90578_, boolean p_90579_, float p_90580_) void
tick()
-
Field Details
-
initialized
private boolean initialized -
level
-
entity
-
position
-
blockPosition
-
forwards
private final org.joml.Vector3f forwards -
up
private final org.joml.Vector3f up -
left
private final org.joml.Vector3f left -
xRot
private float xRot -
yRot
private float yRot -
rotation
private final org.joml.Quaternionf rotation -
detached
private boolean detached -
eyeHeight
private float eyeHeight -
eyeHeightOld
private float eyeHeightOld -
partialTickTime
private float partialTickTime -
FOG_DISTANCE_SCALE
public static final float FOG_DISTANCE_SCALE- See Also:
-
-
Constructor Details
-
Camera
public Camera()
-
-
Method Details
-
setup
public void setup(BlockGetter p_90576_, Entity p_90577_, boolean p_90578_, boolean p_90579_, float p_90580_) -
tick
public void tick() -
getMaxZoom
private double getMaxZoom(double p_90567_) -
move
protected void move(double p_90569_, double p_90570_, double p_90571_) -
setRotation
protected void setRotation(float p_90573_, float p_90574_) -
setPosition
protected void setPosition(double p_90585_, double p_90586_, double p_90587_) -
setPosition
-
getPosition
-
getBlockPosition
-
getXRot
public float getXRot() -
getYRot
public float getYRot() -
rotation
public org.joml.Quaternionf rotation() -
getEntity
-
isInitialized
public boolean isInitialized() -
isDetached
public boolean isDetached() -
getNearPlane
-
getFluidInCamera
-
getLookVector
public final org.joml.Vector3f getLookVector() -
getUpVector
public final org.joml.Vector3f getUpVector() -
getLeftVector
public final org.joml.Vector3f getLeftVector() -
reset
public void reset() -
getPartialTickTime
public float getPartialTickTime() -
setAnglesInternal
public void setAnglesInternal(float yaw, float pitch) -
getBlockAtCamera
-