SulfurCubeBucket 5.47.0
Extends UnstackableItem
Bucket of Sulfur Cube (a sulfur cube picked up with an empty bucket). Unlike the buckets of aquatic mobs it holds no water: using it on a block releases the cube (with the age, health and block saved on the bucket, see BucketableMob) and leaves an empty bucket.
Methods
onInteractBlock()
php
public function onInteractBlock(\pocketmine\player\Player $player, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, array &$returnedItems) : \pocketmine\item\ItemUseResultreleaseMob()
php
public function releaseMob(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos) : ?\pocketmine\entity\EntitySpawns the cube of this bucket at the given position. Returns it, or null if no sulfur cube is registered.
