Package net.minecraft.client.renderer
Class Octree.Branch
java.lang.Object
net.minecraft.client.renderer.Octree.Branch
- All Implemented Interfaces:
Octree.Node
- Enclosing class:
Octree
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final intprivate final BoundingBoxprivate final booleanprivate final booleanprivate final booleanprivate final Octree.Node[]private final Octree.AxisSorting -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(SectionRenderDispatcher.RenderSection section) private booleanprivate BoundingBoxcreateChildBoundingBox(boolean xDiffNegative, boolean yDiffNegative, boolean zDiffNegative) getAABB()private static intgetNodeIndex(Octree.AxisSorting sorting, boolean xDiffNegative, boolean yDiffNegative, boolean zDiffNegative) voidvisitNodes(Octree.OctreeVisitor p_366879_, boolean p_366787_, Frustum p_366666_, int p_366756_, int p_371411_, boolean p_371398_)
-
Field Details
-
nodes
-
boundingBox
-
bbCenterX
private final int bbCenterX -
bbCenterY
private final int bbCenterY -
bbCenterZ
private final int bbCenterZ -
sorting
-
cameraXDiffNegative
private final boolean cameraXDiffNegative -
cameraYDiffNegative
private final boolean cameraYDiffNegative -
cameraZDiffNegative
private final boolean cameraZDiffNegative
-
-
Constructor Details
-
Branch
-
-
Method Details
-
add
-
getNodeIndex
private static int getNodeIndex(Octree.AxisSorting sorting, boolean xDiffNegative, boolean yDiffNegative, boolean zDiffNegative) -
areChildrenLeaves
private boolean areChildrenLeaves() -
createChildBoundingBox
private BoundingBox createChildBoundingBox(boolean xDiffNegative, boolean yDiffNegative, boolean zDiffNegative) -
visitNodes
public void visitNodes(Octree.OctreeVisitor p_366879_, boolean p_366787_, Frustum p_366666_, int p_366756_, int p_371411_, boolean p_371398_) - Specified by:
visitNodesin interfaceOctree.Node
-
getSection
- Specified by:
getSectionin interfaceOctree.Node
-
getAABB
- Specified by:
getAABBin interfaceOctree.Node
-