Class Frustum

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

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

    • RECESSION_SCALE

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

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

      private final Matrix4f positionProjectionMatrix
      Mappings:
      Namespace Name Mixin selector
      official c Lfwk;c:Lorg/joml/Matrix4f;
      intermediary field_40824 Lnet/minecraft/class_4604;field_40824:Lorg/joml/Matrix4f;
      named positionProjectionMatrix Lnet/minecraft/client/render/Frustum;positionProjectionMatrix: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
      official d Lfwk;d:Lorg/joml/Vector4f;
      intermediary field_34821 Lnet/minecraft/class_4604;field_34821:Lorg/joml/Vector4f;
      named recession Lnet/minecraft/client/render/Frustum;recession:Lorg/joml/Vector4f;
    • x

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

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

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

    • Frustum

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

      public Frustum(Frustum frustum)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfwk;<init>(Lfwk;)V
      intermediary <init> Lnet/minecraft/class_4604;<init>(Lnet/minecraft/class_4604;)V
      named <init> Lnet/minecraft/client/render/Frustum;<init>(Lnet/minecraft/client/render/Frustum;)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
      official a Lfwk;a(I)Lfwk;
      intermediary method_38557 Lnet/minecraft/class_4604;method_38557(I)Lnet/minecraft/class_4604;
      named coverBoxAroundSetPosition Lnet/minecraft/client/render/Frustum;coverBoxAroundSetPosition(I)Lnet/minecraft/client/render/Frustum;
    • setPosition

      public void setPosition(double cameraX, double cameraY, double cameraZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lfwk;a(DDD)V
      intermediary method_23088 Lnet/minecraft/class_4604;method_23088(DDD)V
      named setPosition Lnet/minecraft/client/render/Frustum;setPosition(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
      official a Lfwk;a(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
      intermediary method_23092 Lnet/minecraft/class_4604;method_23092(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
      named init Lnet/minecraft/client/render/Frustum;init(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
    • isVisible

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

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