Skip to content

SplashPotion ​

class · pocketmine\item\SplashPotion · source

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\Throwable

describeState() protected ​

php
protected function describeState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

getMaxStackSize() ​

php
public function getMaxStackSize() : int

getThrowForce() ​

php
public function getThrowForce() : float

getType() ​

php
public function getType() : \pocketmine\item\PotionType

setType() ​

php
public function setType(\pocketmine\item\PotionType $type) : self

willLinger() ​

php
public function willLinger() : bool

Returns whether this splash potion will create an area-effect cloud on impact.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.