Class Camera

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

@Environment(CLIENT) public class Camera extends Object
Mappings:
Namespace Name
named net/minecraft/client/render/Camera
intermediary net/minecraft/class_4184
official fes
  • Field Details

    • BASE_CAMERA_DISTANCE

      private static final float BASE_CAMERA_DISTANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BASE_CAMERA_DISTANCE Lnet/minecraft/client/render/Camera;BASE_CAMERA_DISTANCE:F
      intermediary field_47841 Lnet/minecraft/class_4184;field_47841:F
      official b Lfes;b:F
    • field_32133

      public static final float field_32133
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32133 Lnet/minecraft/client/render/Camera;field_32133:F
      intermediary field_32133 Lnet/minecraft/class_4184;field_32133:F
      official a Lfes;a:F
    • ready

      private boolean ready
      Mappings:
      Namespace Name Mixin selector
      named ready Lnet/minecraft/client/render/Camera;ready:Z
      intermediary field_18709 Lnet/minecraft/class_4184;field_18709:Z
      official c Lfes;c:Z
    • area

      private BlockView area
      Mappings:
      Namespace Name Mixin selector
      named area Lnet/minecraft/client/render/Camera;area:Lnet/minecraft/world/BlockView;
      intermediary field_18710 Lnet/minecraft/class_4184;field_18710:Lnet/minecraft/class_1922;
      official d Lfes;d:Ldbg;
    • focusedEntity

      private Entity focusedEntity
      Mappings:
      Namespace Name Mixin selector
      named focusedEntity Lnet/minecraft/client/render/Camera;focusedEntity:Lnet/minecraft/entity/Entity;
      intermediary field_18711 Lnet/minecraft/class_4184;field_18711:Lnet/minecraft/class_1297;
      official e Lfes;e:Lbsw;
    • pos

      private Vec3d pos
      Mappings:
      Namespace Name Mixin selector
      named pos Lnet/minecraft/client/render/Camera;pos:Lnet/minecraft/util/math/Vec3d;
      intermediary field_18712 Lnet/minecraft/class_4184;field_18712:Lnet/minecraft/class_243;
      official f Lfes;f:Levt;
    • blockPos

      private final BlockPos.Mutable blockPos
      Mappings:
      Namespace Name Mixin selector
      named blockPos Lnet/minecraft/client/render/Camera;blockPos:Lnet/minecraft/util/math/BlockPos$Mutable;
      intermediary field_18713 Lnet/minecraft/class_4184;field_18713:Lnet/minecraft/class_2338$class_2339;
      official g Lfes;g:Liz$a;
    • horizontalPlane

      private final Vector3f horizontalPlane
      Mappings:
      Namespace Name Mixin selector
      named horizontalPlane Lnet/minecraft/client/render/Camera;horizontalPlane:Lorg/joml/Vector3f;
      intermediary field_18714 Lnet/minecraft/class_4184;field_18714:Lorg/joml/Vector3f;
      official h Lfes;h:Lorg/joml/Vector3f;
    • verticalPlane

      private final Vector3f verticalPlane
      Mappings:
      Namespace Name Mixin selector
      named verticalPlane Lnet/minecraft/client/render/Camera;verticalPlane:Lorg/joml/Vector3f;
      intermediary field_18715 Lnet/minecraft/class_4184;field_18715:Lorg/joml/Vector3f;
      official i Lfes;i:Lorg/joml/Vector3f;
    • diagonalPlane

      private final Vector3f diagonalPlane
      Mappings:
      Namespace Name Mixin selector
      named diagonalPlane Lnet/minecraft/client/render/Camera;diagonalPlane:Lorg/joml/Vector3f;
      intermediary field_18716 Lnet/minecraft/class_4184;field_18716:Lorg/joml/Vector3f;
      official j Lfes;j:Lorg/joml/Vector3f;
    • pitch

      private float pitch
      Mappings:
      Namespace Name Mixin selector
      named pitch Lnet/minecraft/client/render/Camera;pitch:F
      intermediary field_18717 Lnet/minecraft/class_4184;field_18717:F
      official k Lfes;k:F
    • yaw

      private float yaw
      Mappings:
      Namespace Name Mixin selector
      named yaw Lnet/minecraft/client/render/Camera;yaw:F
      intermediary field_18718 Lnet/minecraft/class_4184;field_18718:F
      official l Lfes;l:F
    • rotation

      private final Quaternionf rotation
      Mappings:
      Namespace Name Mixin selector
      named rotation Lnet/minecraft/client/render/Camera;rotation:Lorg/joml/Quaternionf;
      intermediary field_21518 Lnet/minecraft/class_4184;field_21518:Lorg/joml/Quaternionf;
      official m Lfes;m:Lorg/joml/Quaternionf;
    • thirdPerson

      private boolean thirdPerson
      Mappings:
      Namespace Name Mixin selector
      named thirdPerson Lnet/minecraft/client/render/Camera;thirdPerson:Z
      intermediary field_18719 Lnet/minecraft/class_4184;field_18719:Z
      official n Lfes;n:Z
    • cameraY

      private float cameraY
      Mappings:
      Namespace Name Mixin selector
      named cameraY Lnet/minecraft/client/render/Camera;cameraY:F
      intermediary field_18721 Lnet/minecraft/class_4184;field_18721:F
      official o Lfes;o:F
    • lastCameraY

      private float lastCameraY
      Mappings:
      Namespace Name Mixin selector
      named lastCameraY Lnet/minecraft/client/render/Camera;lastCameraY:F
      intermediary field_18722 Lnet/minecraft/class_4184;field_18722:F
      official p Lfes;p:F
    • lastTickDelta

      private float lastTickDelta
      Mappings:
      Namespace Name Mixin selector
      named lastTickDelta Lnet/minecraft/client/render/Camera;lastTickDelta:F
      intermediary field_47549 Lnet/minecraft/class_4184;field_47549:F
      official q Lfes;q:F
  • Constructor Details

    • Camera

      public Camera()
  • Method Details

    • update

      public void update(BlockView area, Entity focusedEntity, boolean thirdPerson, boolean inverseView, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/client/render/Camera;update(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;ZZF)V
      intermediary method_19321 Lnet/minecraft/class_4184;method_19321(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;ZZF)V
      official a Lfes;a(Ldbg;Lbsw;ZZF)V
    • updateEyeHeight

      public void updateEyeHeight()
      Mappings:
      Namespace Name Mixin selector
      named updateEyeHeight Lnet/minecraft/client/render/Camera;updateEyeHeight()V
      intermediary method_19317 Lnet/minecraft/class_4184;method_19317()V
      official a Lfes;a()V
    • clipToSpace

      private double clipToSpace(double desiredCameraDistance)
      Mappings:
      Namespace Name Mixin selector
      named clipToSpace Lnet/minecraft/client/render/Camera;clipToSpace(D)D
      intermediary method_19318 Lnet/minecraft/class_4184;method_19318(D)D
      official a Lfes;a(D)D
    • moveBy

      protected void moveBy(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      named moveBy Lnet/minecraft/client/render/Camera;moveBy(DDD)V
      intermediary method_19324 Lnet/minecraft/class_4184;method_19324(DDD)V
      official a Lfes;a(DDD)V
    • setRotation

      protected void setRotation(float yaw, float pitch)
      Mappings:
      Namespace Name Mixin selector
      named setRotation Lnet/minecraft/client/render/Camera;setRotation(FF)V
      intermediary method_19325 Lnet/minecraft/class_4184;method_19325(FF)V
      official a Lfes;a(FF)V
    • setPos

      protected void setPos(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      named setPos Lnet/minecraft/client/render/Camera;setPos(DDD)V
      intermediary method_19327 Lnet/minecraft/class_4184;method_19327(DDD)V
      official b Lfes;b(DDD)V
    • setPos

      protected void setPos(Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      named setPos Lnet/minecraft/client/render/Camera;setPos(Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_19322 Lnet/minecraft/class_4184;method_19322(Lnet/minecraft/class_243;)V
      official a Lfes;a(Levt;)V
    • getPos

      public Vec3d getPos()
      Mappings:
      Namespace Name Mixin selector
      named getPos Lnet/minecraft/client/render/Camera;getPos()Lnet/minecraft/util/math/Vec3d;
      intermediary method_19326 Lnet/minecraft/class_4184;method_19326()Lnet/minecraft/class_243;
      official b Lfes;b()Levt;
    • getBlockPos

      public BlockPos getBlockPos()
      Mappings:
      Namespace Name Mixin selector
      named getBlockPos Lnet/minecraft/client/render/Camera;getBlockPos()Lnet/minecraft/util/math/BlockPos;
      intermediary method_19328 Lnet/minecraft/class_4184;method_19328()Lnet/minecraft/class_2338;
      official c Lfes;c()Liz;
    • getPitch

      public float getPitch()
      Mappings:
      Namespace Name Mixin selector
      named getPitch Lnet/minecraft/client/render/Camera;getPitch()F
      intermediary method_19329 Lnet/minecraft/class_4184;method_19329()F
      official d Lfes;d()F
    • getYaw

      public float getYaw()
      Mappings:
      Namespace Name Mixin selector
      named getYaw Lnet/minecraft/client/render/Camera;getYaw()F
      intermediary method_19330 Lnet/minecraft/class_4184;method_19330()F
      official e Lfes;e()F
    • getRotation

      public Quaternionf getRotation()
      Mappings:
      Namespace Name Mixin selector
      named getRotation Lnet/minecraft/client/render/Camera;getRotation()Lorg/joml/Quaternionf;
      intermediary method_23767 Lnet/minecraft/class_4184;method_23767()Lorg/joml/Quaternionf;
      official f Lfes;f()Lorg/joml/Quaternionf;
    • getFocusedEntity

      public Entity getFocusedEntity()
      Mappings:
      Namespace Name Mixin selector
      named getFocusedEntity Lnet/minecraft/client/render/Camera;getFocusedEntity()Lnet/minecraft/entity/Entity;
      intermediary method_19331 Lnet/minecraft/class_4184;method_19331()Lnet/minecraft/class_1297;
      official g Lfes;g()Lbsw;
    • isReady

      public boolean isReady()
      Mappings:
      Namespace Name Mixin selector
      named isReady Lnet/minecraft/client/render/Camera;isReady()Z
      intermediary method_19332 Lnet/minecraft/class_4184;method_19332()Z
      official h Lfes;h()Z
    • isThirdPerson

      public boolean isThirdPerson()
      Mappings:
      Namespace Name Mixin selector
      named isThirdPerson Lnet/minecraft/client/render/Camera;isThirdPerson()Z
      intermediary method_19333 Lnet/minecraft/class_4184;method_19333()Z
      official i Lfes;i()Z
    • getProjection

      public Camera.Projection getProjection()
      Returns the field of vision of this camera.
      Returns:
      the field of vision of this camera
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getProjection Lnet/minecraft/client/render/Camera;getProjection()Lnet/minecraft/client/render/Camera$Projection;
      intermediary method_36425 Lnet/minecraft/class_4184;method_36425()Lnet/minecraft/class_4184$class_6355;
      official j Lfes;j()Lfes$a;
    • getSubmersionType

      public CameraSubmersionType getSubmersionType()
      Mappings:
      Namespace Name Mixin selector
      named getSubmersionType Lnet/minecraft/client/render/Camera;getSubmersionType()Lnet/minecraft/client/render/CameraSubmersionType;
      intermediary method_19334 Lnet/minecraft/class_4184;method_19334()Lnet/minecraft/class_5636;
      official k Lfes;k()Lenz;
    • getHorizontalPlane

      public final Vector3f getHorizontalPlane()
      Mappings:
      Namespace Name Mixin selector
      named getHorizontalPlane Lnet/minecraft/client/render/Camera;getHorizontalPlane()Lorg/joml/Vector3f;
      intermediary method_19335 Lnet/minecraft/class_4184;method_19335()Lorg/joml/Vector3f;
      official l Lfes;l()Lorg/joml/Vector3f;
    • getVerticalPlane

      public final Vector3f getVerticalPlane()
      Mappings:
      Namespace Name Mixin selector
      named getVerticalPlane Lnet/minecraft/client/render/Camera;getVerticalPlane()Lorg/joml/Vector3f;
      intermediary method_19336 Lnet/minecraft/class_4184;method_19336()Lorg/joml/Vector3f;
      official m Lfes;m()Lorg/joml/Vector3f;
    • getDiagonalPlane

      public final Vector3f getDiagonalPlane()
      Mappings:
      Namespace Name Mixin selector
      named getDiagonalPlane Lnet/minecraft/client/render/Camera;getDiagonalPlane()Lorg/joml/Vector3f;
      intermediary method_35689 Lnet/minecraft/class_4184;method_35689()Lorg/joml/Vector3f;
      official n Lfes;n()Lorg/joml/Vector3f;
    • reset

      public void reset()
      Mappings:
      Namespace Name Mixin selector
      named reset Lnet/minecraft/client/render/Camera;reset()V
      intermediary method_19337 Lnet/minecraft/class_4184;method_19337()V
      official o Lfes;o()V
    • getLastTickDelta

      public float getLastTickDelta()
      Mappings:
      Namespace Name Mixin selector
      named getLastTickDelta Lnet/minecraft/client/render/Camera;getLastTickDelta()F
      intermediary method_55437 Lnet/minecraft/class_4184;method_55437()F
      official p Lfes;p()F