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 @Nullable Octree.Node[]private final Octree.AxisSorting -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(SectionRenderDispatcher.RenderSection section) private booleanprivate BoundingBoxcreateChildBoundingBox(boolean sectionXDiffNegative, boolean sectionYDiffNegative, boolean sectionZDiffNegative) getAABB()private static intgetNodeIndex(Octree.AxisSorting sorting, boolean xDiffsOppositeSides, boolean yDiffsOppositeSides, boolean zDiffsOppositeSides) voidvisitNodes(Octree.OctreeVisitor visitor, boolean skipFrustumCheck, Frustum frustum, int depth, int closeDistance, boolean isClose)
-
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 xDiffsOppositeSides, boolean yDiffsOppositeSides, boolean zDiffsOppositeSides) -
areChildrenLeaves
private boolean areChildrenLeaves() -
createChildBoundingBox
private BoundingBox createChildBoundingBox(boolean sectionXDiffNegative, boolean sectionYDiffNegative, boolean sectionZDiffNegative) -
visitNodes
public void visitNodes(Octree.OctreeVisitor visitor, boolean skipFrustumCheck, Frustum frustum, int depth, int closeDistance, boolean isClose) - Specified by:
visitNodesin interfaceOctree.Node
-
getSection
- Specified by:
getSectionin interfaceOctree.Node
-
getAABB
- Specified by:
getAABBin interfaceOctree.Node
-