22declare(strict_types=1);
26use pocketmine\block\utils\SupportType;
35 protected int $axis = Axis::X;
38 $w->horizontalAxis($this->axis);
41 public function getAxis() : int{
49 public function setAxis(
int $axis) : self{
50 if($axis !==
Axis::X && $axis !==
Axis::Z){
51 throw new \InvalidArgumentException(
"Invalid axis");
73 return SupportType::NONE;
getSupportType(int $facing)
describeBlockOnlyState(RuntimeDataDescriber $w)
onEntityInside(Entity $entity)
recalculateCollisionBoxes()