SplashPotion
Extends ProjectileItem
Methods
__construct()
php
public function __construct(\pocketmine\item\ItemIdentifier $identifier, string $name = "Splash Potion", array $enchantmentTags = [], bool $linger = false)createEntity() protected
php
protected function createEntity(\pocketmine\entity\Location $location, \pocketmine\player\Player $thrower) : \pocketmine\entity\projectile\ThrowabledescribeState() protected
php
protected function describeState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetMaxStackSize()
php
public function getMaxStackSize() : intgetThrowForce()
php
public function getThrowForce() : floatgetType()
php
public function getType() : \pocketmine\item\PotionTypesetType()
php
public function setType(\pocketmine\item\PotionType $type) : selfwillLinger()
php
public function willLinger() : boolReturns whether this splash potion will create an area-effect cloud on impact.
