mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
CoralBlock: added setCoralType()
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user