mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-29 00:26:56 +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{
|
final class CoralBlock extends Opaque{
|
||||||
|
|
||||||
/** @var CoralType */
|
/** @var CoralType */
|
||||||
private $coralType; //TODO: make this dynamic via setter
|
private $coralType;
|
||||||
|
|
||||||
/** @var bool */
|
/** @var bool */
|
||||||
private $dead = false;
|
private $dead = false;
|
||||||
@ -65,6 +65,12 @@ final class CoralBlock extends Opaque{
|
|||||||
|
|
||||||
public function getCoralType() : CoralType{ return $this->coralType; }
|
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; }
|
public function isDead() : bool{ return $this->dead; }
|
||||||
|
|
||||||
/** @return $this */
|
/** @return $this */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user