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 ghj
  • 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 Lghj;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 Lghj;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 Lghj;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 Lghj;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 Lghj;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 Lghj;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 Lghj;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> Lghj;<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> Lghj;<init>(Lghj;)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 Lghj;a(I)Lghj;
    • 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 Lghj;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 Lghj;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 Lghj;a(Lewc;)Z
    • isVisible

      private boolean isVisible(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
      Mappings:
      Namespace Name Mixin selector
      named isVisible Lnet/minecraft/client/render/Frustum;isVisible(DDDDDD)Z
      intermediary method_23089 Lnet/minecraft/class_4604;method_23089(DDDDDD)Z
      official a Lghj;a(DDDDDD)Z