static final class AbstractBlock.AbstractBlockState.ShapeCache extends Object
Modifier and Type | Field and Description |
---|---|
protected VoxelShape |
collisionShape |
private static Direction[] |
DIRECTIONS |
protected boolean |
exceedsCube |
private VoxelShape[] |
extrudedFaces |
protected boolean |
fullOpaque |
protected boolean |
isFullCube |
private int |
lightSubtracted |
private static int |
SHAPE_TYPE_LENGTH |
private boolean[] |
solidSides |
private boolean |
translucent |
Modifier | Constructor and Description |
---|---|
private |
ShapeCache(BlockState state) |
Modifier and Type | Method and Description |
---|---|
private static int |
indexSolidSide(Direction direction,
SideShapeType shapeType) |
boolean |
isSideSolid(Direction direction,
SideShapeType shapeType) |
private static final Direction[] DIRECTIONS
private static final int SHAPE_TYPE_LENGTH
protected final boolean fullOpaque
private final boolean translucent
private final int lightSubtracted
@Nullable private final VoxelShape[] extrudedFaces
protected final VoxelShape collisionShape
protected final boolean exceedsCube
private final boolean[] solidSides
protected final boolean isFullCube
private ShapeCache(BlockState state)
public boolean isSideSolid(Direction direction, SideShapeType shapeType)
private static int indexSolidSide(Direction direction, SideShapeType shapeType)