22declare(strict_types=1);
32 private PotionType $potionType = PotionType::WATER;
35 $w->enum($this->potionType);
38 public function getType() :
PotionType{ return $this->potionType; }
44 $this->potionType = $type;
56 public function getAdditionalEffects() : array{
65 public function canStartUsingItem(
Player $player) : bool{
onConsume(Living $consumer)
setType(PotionType $type)
describeState(RuntimeDataDescriber $w)