public class VisGraph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.BitSet |
bitSet |
private static Direction[] |
DIRECTIONS |
private static int |
DX |
private static int |
DY |
private static int |
DZ |
private int |
empty |
private static int[] |
INDEX_OF_EDGES |
Constructor and Description |
---|
VisGraph() |
Modifier and Type | Method and Description |
---|---|
private void |
addEdges(int pos,
java.util.Set<Direction> setFacings) |
SetVisibility |
computeVisibility() |
private java.util.Set<Direction> |
floodFill(int pos) |
private static int |
getIndex(BlockPos pos) |
private static int |
getIndex(int x,
int y,
int z) |
private int |
getNeighborIndexAtFace(int pos,
Direction facing) |
java.util.Set<Direction> |
getVisibleFacings(BlockPos pos) |
void |
setOpaqueCube(BlockPos pos) |
private static final int DX
private static final int DZ
private static final int DY
private static final Direction[] DIRECTIONS
private final java.util.BitSet bitSet
private static final int[] INDEX_OF_EDGES
private int empty
public void setOpaqueCube(BlockPos pos)
private static int getIndex(BlockPos pos)
private static int getIndex(int x, int y, int z)
public SetVisibility computeVisibility()
private java.util.Set<Direction> floodFill(int pos)
private void addEdges(int pos, java.util.Set<Direction> setFacings)
private int getNeighborIndexAtFace(int pos, Direction facing)