Package net.minecraft.client
Class Camera
java.lang.Object
net.minecraft.client.Camera
- All Implemented Interfaces:
TrackedWaypoint.Camera
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EnvironmentAttributeProbeprivate final BlockPos.MutableBlockPosprivate static final floatprivate booleanprivate Entityprivate floatprivate floatprivate final Vector3fprivate static final Vector3fprivate booleanprivate final Vector3fprivate static final Vector3fprivate Levelprivate floatprivate Vec3private floatprivate final Quaternionfprivate final Vector3fprivate static final Vector3fprivate floatprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentity()private floatgetMaxZoom(float maxZoom) floatfloatgetRoll()booleanbooleanprotected voidmove(float zoom, float dy, float dx) position()voidreset()rotation()protected voidsetPosition(double x, double y, double z) Sets the position and blockpos of the active renderprotected voidsetPosition(Vec3 pos) protected voidsetRotation(float yRot, float xRot) Deprecated.protected voidsetRotation(float yRot, float xRot, float roll) voidvoidtick()upVector()floatxRot()floatyaw()floatyRot()
-
Field Details
-
DEFAULT_CAMERA_DISTANCE
private static final float DEFAULT_CAMERA_DISTANCE- See Also:
-
FORWARDS
-
UP
-
LEFT
-
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 -
partialTickTime
private float partialTickTime -
attributeProbe
-
roll
private float roll
-
-
Constructor Details
-
Camera
public Camera()
-
-
Method Details
-
setup
-
tick
public void tick() -
getMaxZoom
private float getMaxZoom(float maxZoom) -
move
protected void move(float zoom, float dy, float dx) -
setRotation
Deprecated.Neo: callsetRotation(float, float, float)instead -
setRotation
protected void setRotation(float yRot, float xRot, float roll) -
setPosition
protected void setPosition(double x, double y, double z) Sets the position and blockpos of the active render -
setPosition
-
position
- Specified by:
positionin interfaceTrackedWaypoint.Camera
-
blockPosition
-
xRot
public float xRot() -
yRot
public float yRot() -
yaw
public float yaw()- Specified by:
yawin interfaceTrackedWaypoint.Camera
-
rotation
-
entity
-
isInitialized
public boolean isInitialized() -
isDetached
public boolean isDetached() -
attributeProbe
-
getNearPlane
-
getFluidInCamera
-
forwardVector
-
upVector
-
leftVector
-
reset
public void reset() -
getPartialTickTime
public float getPartialTickTime() -
getRoll
public float getRoll() -
getBlockAtCamera
-
setRotation(float, float, float)instead