Gets the normal vector corresponding to this block face. @return the normal vector
()
| 76 | * @return the normal vector |
| 77 | */ |
| 78 | @NotNull |
| 79 | public Vector getDirection() { |
| 80 | Vector direction = new Vector(modX, modY, modZ); |
| 81 | if (modX != 0 || modY != 0 || modZ != 0) { |
| 82 | direction.normalize(); |
| 83 | } |
| 84 | return direction; |
| 85 | } |
| 86 | |
| 87 | @NotNull |
| 88 | public BlockFace getOppositeFace() { |