Package net.minecraft.client
Class Camera
java.lang.Object
net.minecraft.client.Camera
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BlockPos.MutableBlockPosprivate booleanprivate Entityprivate floatprivate floatstatic final floatprivate final org.joml.Vector3fprivate booleanprivate final org.joml.Vector3fprivate BlockGetterprivate Vec3private final org.joml.Quaternionfprivate final org.joml.Vector3fprivate floatprivate float
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal org.joml.Vector3ffinal org.joml.Vector3fprivate doublegetMaxZoom(double p_90567_) final org.joml.Vector3ffloatgetXRot()floatgetYRot()booleanbooleanprotected voidmove(double p_90569_, double p_90570_, double p_90571_) voidreset()org.joml.Quaternionfrotation()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- 
initializedprivate boolean initialized
- 
level
- 
entity
- 
position
- 
blockPosition
- 
forwardsprivate final org.joml.Vector3f forwards
- 
upprivate final org.joml.Vector3f up
- 
leftprivate final org.joml.Vector3f left
- 
xRotprivate float xRot
- 
yRotprivate float yRot
- 
rotationprivate final org.joml.Quaternionf rotation
- 
detachedprivate boolean detached
- 
eyeHeightprivate float eyeHeight
- 
eyeHeightOldprivate float eyeHeightOld
- 
FOG_DISTANCE_SCALEpublic static final float FOG_DISTANCE_SCALE- See Also:
 
 
- 
- 
Constructor Details- 
Camerapublic Camera()
 
- 
- 
Method Details- 
setuppublic void setup(BlockGetter p_90576_, Entity p_90577_, boolean p_90578_, boolean p_90579_, float p_90580_) 
- 
tickpublic void tick()
- 
getMaxZoomprivate double getMaxZoom(double p_90567_) 
- 
moveprotected void move(double p_90569_, double p_90570_, double p_90571_) 
- 
setRotationprotected void setRotation(float p_90573_, float p_90574_) 
- 
setPositionprotected void setPosition(double p_90585_, double p_90586_, double p_90587_) 
- 
setPosition
- 
getPosition
- 
getBlockPosition
- 
getXRotpublic float getXRot()
- 
getYRotpublic float getYRot()
- 
rotationpublic org.joml.Quaternionf rotation()
- 
getEntity
- 
isInitializedpublic boolean isInitialized()
- 
isDetachedpublic boolean isDetached()
- 
getNearPlane
- 
getFluidInCamera
- 
getLookVectorpublic final org.joml.Vector3f getLookVector()
- 
getUpVectorpublic final org.joml.Vector3f getUpVector()
- 
getLeftVectorpublic final org.joml.Vector3f getLeftVector()
- 
resetpublic void reset()
- 
setAnglesInternalpublic void setAnglesInternal(float yaw, float pitch) 
- 
getBlockAtCamera
 
-