Skip to content

PotionCauldron ​

final class · pocketmine\block\PotionCauldron · source

Extends FillableCauldron

Constants ​

POTION_FILL_AMOUNT ​

php
public const POTION_FILL_AMOUNT = 2

Methods ​

__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) : void

getEmptySound() ​

php
public function getEmptySound() : \pocketmine\world\sound\Sound

getFillSound() ​

php
public function getFillSound() : \pocketmine\world\sound\Sound

getPotionItem() ​

php
public function getPotionItem() : ?\pocketmine\item\Item

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

readStateFromWorld() ​

php
public function readStateFromWorld() : \pocketmine\block\Block

setPotionItem() ​

php
public function setPotionItem(?\pocketmine\item\Item $potionItem) : self

writeStateToWorld() ​

php
public function writeStateToWorld() : void

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