TippedArrow 5.46.0
Extends Arrow
Arrow tipped with a potion (Bedrock: minecraft:arrow with meta = potion ID + 1). The arrow applies the potion's effects to the mob it hits, with 1/8 of the potion's duration (instant effects are applied as they are).
Constants
DURATION_DIVISOR
php
public const DURATION_DIVISOR = 8Tipped arrows apply their effects for this fraction of the potion's duration.
Methods
describeState() protected
php
protected function describeState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetArrowEffects()
php
public static function getArrowEffects(\pocketmine\item\PotionType $type) : arrayReturns the effects that an arrow tipped with the given potion applies on hit.
getType()
php
public function getType() : \pocketmine\item\PotionTypesetType()
php
public function setType(\pocketmine\item\PotionType $type) : self