34 private PotionType $potionType = PotionType::WATER;
36 public function __construct(
38 string $name =
"Splash Potion",
39 array $enchantmentTags = [],
40 private bool $linger =
false
43 parent::__construct($identifier, $name, $enchantmentTags);
47 $w->enum($this->potionType);
50 public function getType() :
PotionType{ return $this->potionType; }
56 $this->potionType = $type;
65 $projectile = new SplashPotionEntity($location, $thrower, $this->potionType);
66 $projectile->setLinger($this->linger);
70 public function getThrowForce() : float{