mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 00:52:22 -07:00
@@ -84,6 +84,26 @@ public enum BlockFace {
|
|||||||
return direction;
|
return direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if this face is aligned with one of the unit axes in 3D
|
||||||
|
* Cartesian space (ie NORTH, SOUTH, EAST, WEST, UP, DOWN).
|
||||||
|
*
|
||||||
|
* @return Cartesian status
|
||||||
|
*/
|
||||||
|
public boolean isCartesian() {
|
||||||
|
switch (this) {
|
||||||
|
case NORTH:
|
||||||
|
case SOUTH:
|
||||||
|
case EAST:
|
||||||
|
case WEST:
|
||||||
|
case UP:
|
||||||
|
case DOWN:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public BlockFace getOppositeFace() {
|
public BlockFace getOppositeFace() {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
|
Reference in New Issue
Block a user