Skip to content

CrafterOrientation 5.46.0 ​

enum · pocketmine\block\utils\CrafterOrientation · source

Orientation of a crafter: the direction its front faces and the direction its top points to (Bedrock block state "orientation", e.g. "north_up" or "down_east"; same set as Java's FrontAndTop).

Cases ​

DOWN_EAST ​

php
case DOWN_EAST

DOWN_NORTH ​

php
case DOWN_NORTH

DOWN_SOUTH ​

php
case DOWN_SOUTH

DOWN_WEST ​

php
case DOWN_WEST

EAST_UP ​

php
case EAST_UP

NORTH_UP ​

php
case NORTH_UP

SOUTH_UP ​

php
case SOUTH_UP

UP_EAST ​

php
case UP_EAST

UP_NORTH ​

php
case UP_NORTH

UP_SOUTH ​

php
case UP_SOUTH

UP_WEST ​

php
case UP_WEST

WEST_UP ​

php
case WEST_UP

Methods ​

fromFrontAndTop() ​

php
public static function fromFrontAndTop(int $front, int $top) : self

Returns the orientation with the given front and top. For a horizontal front the top is always up.

getFront() ​

php
public function getFront() : int

Direction the front (output) of the crafter faces.

getTop() ​

php
public function getTop() : int

Direction the top of the crafter points to.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.