ProjectileDispenseBehavior 5.46.0
Implements DispenseBehavior
Shoots the item as a projectile in the direction the dispenser faces (vanilla ProjectileDispenseBehavior: the direction gets 0.1 added upwards, then a random spread of 0.0075 * uncertainty per axis, times the power).
Methods
__construct()
php
public function __construct(\Closure $createEntity, float $power = 1.1, float $uncertainty = 6.0, ?\pocketmine\world\sound\Sound $sound = null)dispense()
php
public function dispense(\pocketmine\block\dispenser\DispenseContext $context, \pocketmine\item\Item $stack) : ?\pocketmine\item\Item