potionId = $potionId; } public function getMaxStackSize() : int{ return 1; } protected function createEntity(Location $location, Player $thrower) : Throwable{ $projectile = new SplashPotionEntity($location, $thrower); $projectile->setPotionId($this->potionId); return $projectile; } public function getThrowForce() : float{ return 0.5; } }