Package net.minecraft.client.render
Class Frustum
java.lang.Object
net.minecraft.client.render.Frustum
- Mappings:
Namespace Name named net/minecraft/client/render/Frustum
intermediary net/minecraft/class_4604
official ggu
-
Field Summary
Modifier and TypeFieldDescriptionprivate final FrustumIntersection
private final Matrix4f
private Vector4f
The vector corresponding to the direction toward the far plane of the frustum.static final int
private double
private double
private double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncoverBoxAroundSetPosition
(int boxSize) Moves the frustum backwards until it entirely covers the cell containing the current position in a cubic lattice with cell sizeboxSize
.private void
private boolean
isVisible
(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) boolean
void
setPosition
(double cameraX, double cameraY, double cameraZ)
-
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
Lggu;a:I
-
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
Lggu;b:Lorg/joml/FrustumIntersection;
-
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
Lggu;c:Lorg/joml/Matrix4f;
-
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
Lggu;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
Lggu;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
Lggu;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
Lggu;g:D
-
-
Constructor Details
-
Frustum
- 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>
Lggu;<init>(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
-
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>
Lggu;<init>(Lggu;)V
-
-
Method Details
-
coverBoxAroundSetPosition
Moves the frustum backwards until it entirely covers the cell containing the current position in a cubic lattice with cell sizeboxSize
.- 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
Lggu;a(I)Lggu;
-
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
Lggu;a(DDD)V
-
init
- Implementation Note:
- The upper-left 3x3 matrix of
positionMatrix * projectionMatrix
should be orthogonal forrecession
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
Lggu;a(Lorg/joml/Matrix4f;Lorg/joml/Matrix4f;)V
-
isVisible
- 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
Lggu;a(Levo;)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
Lggu;a(DDDDDD)Z
-