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 booleanprivate Entityprivate floatprivate floatstatic final floatprivate final Vector3fprivate booleanprivate final Vector3fprivate BlockGetterprivate Vec3private final Quaternionprivate final Vector3fprivate floatprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Vector3ffinal Vector3fprivate doublegetMaxZoom(double p_90567_) final Vector3ffloatgetXRot()floatgetYRot()booleanbooleanprotected voidmove(double p_90569_, double p_90570_, double p_90571_) voidreset()rotation()voidsetAnglesInternal(float yaw, float pitch) protected voidsetPosition(double p_90585_, double p_90586_, double p_90587_) protected voidsetPosition(Vec3 p_90582_) protected voidsetRotation(float p_90573_, float p_90574_) voidsetup(BlockGetter p_90576_, Entity p_90577_, boolean p_90578_, boolean p_90579_, float p_90580_) voidtick()
-
Field Details
-
initialized
private boolean initialized -
level
-
entity
-
position
-
blockPosition
-
forwards
-
up
-
left
-
xRot
private float xRot -
yRot
private float yRot -
rotation
-
detached
private boolean detached -
eyeHeight
private float eyeHeight -
eyeHeightOld
private float eyeHeightOld -
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
-
getEntity
-
isInitialized
public boolean isInitialized() -
isDetached
public boolean isDetached() -
getNearPlane
-
getFluidInCamera
-
getLookVector
-
getUpVector
-
getLeftVector
-
reset
public void reset() -
setAnglesInternal
public void setAnglesInternal(float yaw, float pitch) -
getBlockAtCamera
-