CoralBlock: added setCoralType()

This commit is contained in:
Dylan K. Taylor
2021-04-27 21:03:23 +01:00
parent 2eb05a2420
commit 72045b3d7e

View File

@@ -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 */