mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +00:00
Skull: added block property APIs
I need these for my R13 block deserializer.
This commit is contained in:
parent
0aa0d77307
commit
c9cf33b21b
@ -91,6 +91,25 @@ class Skull extends Flowable{
|
||||
return $this->skullType;
|
||||
}
|
||||
|
||||
public function getFacing() : int{ return $this->facing; }
|
||||
|
||||
/** @return $this */
|
||||
public function setFacing(int $facing) : self{
|
||||
if($facing === Facing::DOWN){
|
||||
throw new \InvalidArgumentException("Skull may not face DOWN");
|
||||
}
|
||||
$this->facing = $facing;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isNoDrops() : bool{ return $this->noDrops; }
|
||||
|
||||
/** @return $this */
|
||||
public function setNoDrops(bool $noDrops) : self{
|
||||
$this->noDrops = $noDrops;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AxisAlignedBB[]
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user