potionType = $potionType; } public function getType() : PotionType{ return $this->potionType; } public function getMaxStackSize() : int{ return 1; } public function onConsume(Living $consumer) : void{ } public function getAdditionalEffects() : array{ //TODO: check CustomPotionEffects NBT return $this->potionType->getEffects(); } public function getResidue() : Item{ return VanillaItems::GLASS_BOTTLE(); } public function canStartUsingItem(Player $player) : bool{ return true; } }