potionType = $potionType; } 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; } }