Class Camera

java.lang.Object
net.minecraft.client.render.Camera

@Environment(CLIENT)
public class Camera
extends Object
  • Field Details

    • ready

      private boolean ready
    • area

      private BlockView area
    • focusedEntity

      private Entity focusedEntity
    • pos

      private Vec3d pos
    • blockPos

      private final BlockPos.Mutable blockPos
    • horizontalPlane

      private final Vec3f horizontalPlane
    • verticalPlane

      private final Vec3f verticalPlane
    • diagonalPlane

      private final Vec3f diagonalPlane
    • pitch

      private float pitch
    • yaw

      private float yaw
    • rotation

      private final Quaternion rotation
    • thirdPerson

      private boolean thirdPerson
    • cameraY

      private float cameraY
    • lastCameraY

      private float lastCameraY
  • Constructor Details

    • Camera

      public Camera()
  • Method Details

    • update

      public void update​(BlockView area, Entity focusedEntity, boolean thirdPerson, boolean inverseView, float tickDelta)
    • updateEyeHeight

      public void updateEyeHeight()
    • clipToSpace

      private double clipToSpace​(double desiredCameraDistance)
    • moveBy

      protected void moveBy​(double x, double y, double z)
    • setRotation

      protected void setRotation​(float yaw, float pitch)
    • setPos

      protected void setPos​(double x, double y, double z)
    • setPos

      protected void setPos​(Vec3d pos)
    • getPos

      public Vec3d getPos()
    • getBlockPos

      public BlockPos getBlockPos()
    • getPitch

      public float getPitch()
    • getYaw

      public float getYaw()
    • getRotation

      public Quaternion getRotation()
    • getFocusedEntity

      public Entity getFocusedEntity()
    • isReady

      public boolean isReady()
    • isThirdPerson

      public boolean isThirdPerson()
    • getSubmersionType

      public CameraSubmersionType getSubmersionType()
    • getHorizontalPlane

      public final Vec3f getHorizontalPlane()
    • getVerticalPlane

      public final Vec3f getVerticalPlane()
    • reset

      public void reset()