Package net.minecraft.client
Class Camera
java.lang.Object
net.minecraft.client.Camera
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPos.MutableBlockPosprivate static final floatprivate booleanprivate Entityprivate floatprivate floatstatic final floatprivate final org.joml.Vector3fprivate static final org.joml.Vector3fprivate booleanprivate final org.joml.Vector3fprivate static final org.joml.Vector3fprivate BlockGetterprivate floatprivate Vec3private floatprivate final org.joml.Quaternionfprivate final org.joml.Vector3fprivate static final org.joml.Vector3fprivate floatprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal org.joml.Vector3ffinal org.joml.Vector3fprivate floatgetMaxZoom(float p_350335_) floatfloatgetRoll()final org.joml.Vector3ffloatgetXRot()floatgetYRot()booleanbooleanprotected voidmove(float p_351037_, float p_351008_, float p_350869_) voidreset()org.joml.Quaternionfrotation()protected voidsetPosition(double p_90585_, double p_90586_, double p_90587_) protected voidsetPosition(Vec3 p_90582_) protected voidsetRotation(float p_90573_, float p_90574_) Deprecated.protected voidsetRotation(float p_90573_, float p_90574_, float roll) voidsetup(BlockGetter p_90576_, Entity p_90577_, boolean p_90578_, boolean p_90579_, float p_90580_) voidtick()
-
Field Details
-
DEFAULT_CAMERA_DISTANCE
private static final float DEFAULT_CAMERA_DISTANCE- See Also:
-
FORWARDS
private static final org.joml.Vector3f FORWARDS -
UP
private static final org.joml.Vector3f UP -
LEFT
private static final org.joml.Vector3f LEFT -
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:
-
roll
private float roll
-
-
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 float getMaxZoom(float p_350335_) -
move
protected void move(float p_351037_, float p_351008_, float p_350869_) -
setRotation
Deprecated.Neo: callsetRotation(float, float, float)instead -
setRotation
protected void setRotation(float p_90573_, float p_90574_, float roll) -
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() -
getRoll
public float getRoll() -
getBlockAtCamera
-
setRotation(float, float, float)instead