Class Frustum

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

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

    • RECESSION_SCALE

      public static final int RECESSION_SCALE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named RECESSION_SCALE Lnet/minecraft/client/render/Frustum;RECESSION_SCALE:I
      intermediary field_34820 Lnet/minecraft/class_4604;field_34820:I
      official a Lgpb;a:I
    • frustumIntersection

      private final FrustumIntersection frustumIntersection
      Mappings:
      Namespace Name Mixin selector
      named frustumIntersection Lnet/minecraft/client/render/Frustum;frustumIntersection:Lorg/joml/FrustumIntersection;
      intermediary field_40823 Lnet/minecraft/class_4604;field_40823:Lorg/joml/FrustumIntersection;
      official b Lgpb;b:Lorg/joml/FrustumIntersection;
    • positionProjectionMatrix

      private final Matrix4f positionProjectionMatrix
      Mappings:
      Namespace Name Mixin selector
      named positionProjectionMatrix Lnet/minecraft/client/render/Frustum;positionProjectionMatrix:Lorg/joml/Matrix4f;
      intermediary field_40824 Lnet/minecraft/class_4604;field_40824:Lorg/joml/Matrix4f;
      official c Lgpb;c:Lorg/joml/Matrix4f;
    • recession

      private Vector4f recession
      The vector corresponding to the direction toward the far plane of the frustum.
      Mappings:
      Namespace Name Mixin selector
      named recession Lnet/minecraft/client/render/Frustum;recession:Lorg/joml/Vector4f;
      intermediary field_34821 Lnet/minecraft/class_4604;field_34821:Lorg/joml/Vector4f;
      official d Lgpb;d:Lorg/joml/Vector4f;
    • x

      private double x
      Mappings:
      Namespace Name Mixin selector
      named x Lnet/minecraft/client/render/Frustum;x:D
      intermediary field_20995 Lnet/minecraft/class_4604;field_20995:D
      official e Lgpb;e:D
    • y

      private double y
      Mappings:
      Namespace Name Mixin selector
      named y Lnet/minecraft/client/render/Frustum;y:D
      intermediary field_20996 Lnet/minecraft/class_4604;field_20996:D
      official f Lgpb;f:D
    • z

      private double z
      Mappings:
      Namespace Name Mixin selector
      named z Lnet/minecraft/client/render/Frustum;z:D
      intermediary field_20997 Lnet/minecraft/class_4604;field_20997:D
      official g Lgpb;g:D
  • Constructor Details

    • Frustum

      public Frustum(Matrix4f positionMatrix, Matrix4f projectionMatrix)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/Frustum;<init>(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
      intermediary <init> Lnet/minecraft/class_4604;<init>(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
      official <init> Lgpb;<init>(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
    • Frustum

      public Frustum(Frustum frustum)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/Frustum;<init>(Lnet/minecraft/client/render/Frustum;)V
      intermediary <init> Lnet/minecraft/class_4604;<init>(Lnet/minecraft/class_4604;)V
      official <init> Lgpb;<init>(Lgpb;)V
  • Method Details

    • coverBoxAroundSetPosition

      public Frustum coverBoxAroundSetPosition(int boxSize)
      Moves the frustum backwards until it entirely covers the cell containing the current position in a cubic lattice with cell size boxSize.
      Mappings:
      Namespace Name Mixin selector
      named coverBoxAroundSetPosition Lnet/minecraft/client/render/Frustum;coverBoxAroundSetPosition(I)Lnet/minecraft/client/render/Frustum;
      intermediary method_38557 Lnet/minecraft/class_4604;method_38557(I)Lnet/minecraft/class_4604;
      official a Lgpb;a(I)Lgpb;
    • setPosition

      public void setPosition(double cameraX, double cameraY, double cameraZ)
      Mappings:
      Namespace Name Mixin selector
      named setPosition Lnet/minecraft/client/render/Frustum;setPosition(DDD)V
      intermediary method_23088 Lnet/minecraft/class_4604;method_23088(DDD)V
      official a Lgpb;a(DDD)V
    • init

      private void init(Matrix4f positionMatrix, Matrix4f projectionMatrix)
      Implementation Note:
      The upper-left 3x3 matrix of positionMatrix * projectionMatrix should be orthogonal for recession to be set to a meaningful value.
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/client/render/Frustum;init(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
      intermediary method_23092 Lnet/minecraft/class_4604;method_23092(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
      official a Lgpb;a(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
    • isVisible

      public boolean isVisible(Box box)
      Mappings:
      Namespace Name Mixin selector
      named isVisible Lnet/minecraft/client/render/Frustum;isVisible(Lnet/minecraft/util/math/Box;)Z
      intermediary method_23093 Lnet/minecraft/class_4604;method_23093(Lnet/minecraft/class_238;)Z
      official a Lgpb;a(Lfbs;)Z
    • intersectAab

      public int intersectAab(BlockBox box)
      Mappings:
      Namespace Name Mixin selector
      named intersectAab Lnet/minecraft/client/render/Frustum;intersectAab(Lnet/minecraft/util/math/BlockBox;)I
      intermediary method_62978 Lnet/minecraft/class_4604;method_62978(Lnet/minecraft/class_3341;)I
      official a Lgpb;a(Leob;)I
    • intersectAab

      private int intersectAab(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
      Mappings:
      Namespace Name Mixin selector
      named intersectAab Lnet/minecraft/client/render/Frustum;intersectAab(DDDDDD)I
      intermediary method_23089 Lnet/minecraft/class_4604;method_23089(DDDDDD)I
      official a Lgpb;a(DDDDDD)I
    • getBoundaryPoints

      public Vector4f[] getBoundaryPoints()
      Mappings:
      Namespace Name Mixin selector
      named getBoundaryPoints Lnet/minecraft/client/render/Frustum;getBoundaryPoints()[Lorg/joml/Vector4f;
      intermediary method_62342 Lnet/minecraft/class_4604;method_62342()[Lorg/joml/Vector4f;
      official a Lgpb;a()[Lorg/joml/Vector4f;
    • getX

      public double getX()
      Mappings:
      Namespace Name Mixin selector
      named getX Lnet/minecraft/client/render/Frustum;getX()D
      intermediary method_62343 Lnet/minecraft/class_4604;method_62343()D
      official b Lgpb;b()D
    • getY

      public double getY()
      Mappings:
      Namespace Name Mixin selector
      named getY Lnet/minecraft/client/render/Frustum;getY()D
      intermediary method_62344 Lnet/minecraft/class_4604;method_62344()D
      official c Lgpb;c()D
    • getZ

      public double getZ()
      Mappings:
      Namespace Name Mixin selector
      named getZ Lnet/minecraft/client/render/Frustum;getZ()D
      intermediary method_62345 Lnet/minecraft/class_4604;method_62345()D
      official d Lgpb;d()D