PotionCauldron
Extends FillableCauldron
Constants
POTION_FILL_AMOUNT
php
public const POTION_FILL_AMOUNT = 2Methods
__construct()
php
public function __construct(\pocketmine\block\BlockIdentifier $idInfo, string $name, \pocketmine\block\BlockTypeInfo $typeInfo)addFillLevelsOrMix() protected
php
protected function addFillLevelsOrMix(int $amount, \pocketmine\item\Item $usedItem, \pocketmine\item\Item $returnedItem, array &$returnedItems) : voidgetEmptySound()
php
public function getEmptySound() : \pocketmine\world\sound\SoundgetFillSound()
php
public function getFillSound() : \pocketmine\world\sound\SoundgetPotionItem()
php
public function getPotionItem() : ?\pocketmine\item\ItemonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonNearbyBlockChange()
php
public function onNearbyBlockChange() : voidreadStateFromWorld()
php
public function readStateFromWorld() : \pocketmine\block\BlocksetPotionItem()
php
public function setPotionItem(?\pocketmine\item\Item $potionItem) : selfwriteStateToWorld()
php
public function writeStateToWorld() : void