@Environment(value=CLIENT) public class ChunkOcclusionDataBuilder extends Object
Modifier and Type | Field and Description |
---|---|
private BitSet |
closed |
private static Direction[] |
DIRECTIONS |
private static int[] |
EDGE_POINTS |
private int |
openCount |
private static int |
STEP_X |
private static int |
STEP_Y |
private static int |
STEP_Z |
Constructor and Description |
---|
ChunkOcclusionDataBuilder() |
Modifier and Type | Method and Description |
---|---|
private void |
addEdgeFaces(int pos,
Set<Direction> openFaces) |
ChunkOcclusionData |
build() |
private Set<Direction> |
getOpenFaces(int pos) |
void |
markClosed(BlockPos pos) |
private int |
offset(int pos,
Direction direction) |
private static int |
pack(BlockPos pos) |
private static int |
pack(int x,
int y,
int z) |
private static final int STEP_X
private static final int STEP_Z
private static final int STEP_Y
private static final Direction[] DIRECTIONS
private static final int[] EDGE_POINTS
private final BitSet closed
private int openCount
public void markClosed(BlockPos pos)
private static int pack(BlockPos pos)
private static int pack(int x, int y, int z)
public ChunkOcclusionData build()
private int offset(int pos, Direction direction)