22declare(strict_types=1);
32 private MedicineType $medicineType = MedicineType::EYE_DROPS;
35 $w->enum($this->medicineType);
38 public function getType() :
MedicineType{ return $this->medicineType; }
44 $this->medicineType = $type;
53 $consumer->
getEffects()->remove($this->getType()->getCuredEffect());
64 public function canStartUsingItem(
Player $player) : bool{
65 return $player->
getEffects()->has($this->getType()->getCuredEffect());
setType(MedicineType $type)
onConsume(Living $consumer)
describeState(RuntimeDataDescriber $w)