CubeFaceSet
An immutable set of BlockFace values (of the cube faces BlockFace.NORTH, BlockFace.EAST, BlockFace.SOUTH, BlockFace.WEST, BlockFace.UP, BlockFace.DOWN) stored as a bitmask in a single Byte.
Bit layout (MSB to LSB): 0 | 0 | DOWN | UP | WEST | SOUTH | EAST | NORTH
Constructors
Creates a new CubeFaceSet from the lowest six bits of data.
Creates a new CubeFaceSet with the faces that are set to true.
Functions
Returns a new CubeFaceSet that is the intersection of this set and other.
Returns a CubeFaceMap where each face in this set is associated with the value produced by valueSelector, and all other faces are null.
Checks whether this set contains at least one face.
Returns a new CubeFaceSet with face removed.
Returns a new CubeFaceSet with all faces in other removed.
Returns a new CubeFaceSet with face added.
Returns a new CubeFaceSet that is the union of this set and other.
Converts this CubeFaceSet to a BlockSideSet given the front direction.