Skip to content

TippedArrow 5.46.0 ​

class · pocketmine\item\TippedArrow · source

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 = 8

Tipped arrows apply their effects for this fraction of the potion's duration.

Methods ​

describeState() protected ​

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

getArrowEffects() ​

php
public static function getArrowEffects(\pocketmine\item\PotionType $type) : array

Returns the effects that an arrow tipped with the given potion applies on hit.

getType() ​

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

setType() ​

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

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