mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-28 16:17:01 +00:00
CoralBlock: added setCoralType()
This commit is contained in:
parent
2eb05a2420
commit
72045b3d7e
@ -32,7 +32,7 @@ use function mt_rand;
|
||||
final class CoralBlock extends Opaque{
|
||||
|
||||
/** @var CoralType */
|
||||
private $coralType; //TODO: make this dynamic via setter
|
||||
private $coralType;
|
||||
|
||||
/** @var bool */
|
||||
private $dead = false;
|
||||
@ -65,6 +65,12 @@ final class CoralBlock extends Opaque{
|
||||
|
||||
public function getCoralType() : CoralType{ return $this->coralType; }
|
||||
|
||||
/** @return $this */
|
||||
public function setCoralType(CoralType $coralType) : self{
|
||||
$this->coralType = $coralType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isDead() : bool{ return $this->dead; }
|
||||
|
||||
/** @return $this */
|
||||
|
Loading…
x
Reference in New Issue
Block a user