mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Block: added a bunch of state manipulation APIs
This commit is contained in:
@@ -82,6 +82,15 @@ trait PillarRotationTrait{
|
||||
][$this->axis] << $this->getAxisMetaShift();
|
||||
}
|
||||
|
||||
/** @see Axis */
|
||||
public function getAxis() : int{ return $this->axis; }
|
||||
|
||||
/** @return $this */
|
||||
public function setAxis(int $axis) : self{
|
||||
$this->axis = $axis;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Block::place()
|
||||
*/
|
||||
|
Reference in New Issue
Block a user