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 BlockPos.MutableBlockPosprivate static final floatprivate booleanprivate Entityprivate floatprivate floatprivate final Vector3fprivate static final Vector3fprivate booleanprivate final Vector3fprivate static final Vector3fprivate BlockGetterprivate floatprivate Vec3private floatprivate final Quaternionfprivate final Vector3fprivate static final Vector3fprivate floatprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Vector3ffinal Vector3fprivate floatgetMaxZoom(float pMaxZoom) floatfloatgetRoll()final Vector3ffloatgetXRot()floatgetYRot()booleanbooleanprotected voidmove(float pZoom, float pDy, float pDx) position()voidreset()rotation()protected voidsetPosition(double pX, double pY, double pZ) Sets the position and blockpos of the active renderprotected voidsetPosition(Vec3 pPos) protected voidsetRotation(float pYRot, float pXRot) Deprecated.protected voidsetRotation(float pYRot, float pXRot, float roll) voidsetup(BlockGetter pLevel, Entity pEntity, boolean pDetached, boolean pThirdPersonReverse, float pPartialTick) voidtick()floatyaw()
-
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 -
roll
private float roll
-
-
Constructor Details
-
Camera
public Camera()
-
-
Method Details
-
setup
public void setup(BlockGetter pLevel, Entity pEntity, boolean pDetached, boolean pThirdPersonReverse, float pPartialTick) -
tick
public void tick() -
getMaxZoom
private float getMaxZoom(float pMaxZoom) -
move
protected void move(float pZoom, float pDy, float pDx) -
setRotation
Deprecated.Neo: callsetRotation(float, float, float)instead -
setRotation
protected void setRotation(float pYRot, float pXRot, float roll) -
setPosition
protected void setPosition(double pX, double pY, double pZ) Sets the position and blockpos of the active render -
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() -
getPartialTickTime
public float getPartialTickTime() -
yaw
public float yaw()- Specified by:
yawin interfaceTrackedWaypoint.Camera
-
position
- Specified by:
positionin interfaceTrackedWaypoint.Camera
-
getRoll
public float getRoll() -
getBlockAtCamera
-
setRotation(float, float, float)instead