enum($this->potionType); } public function getType() : PotionType{ return $this->potionType; } /** * @return $this */ public function setType(PotionType $type) : self{ $this->potionType = $type; return $this; } public function getMaxStackSize() : int{ return 1; } protected function createEntity(Location $location, Player $thrower) : Throwable{ return new SplashPotionEntity($location, $thrower, $this->potionType); } public function getThrowForce() : float{ return 0.5; } }