FillableCauldron
Extends Transparent
Constants
MAX_FILL_LEVEL
php
public const MAX_FILL_LEVEL = 6MIN_FILL_LEVEL
php
public const MIN_FILL_LEVEL = 1PRECIPITATION_FILL_AMOUNT 5.46.0
php
public const PRECIPITATION_FILL_AMOUNT = 2Levels added by rain or snow (a third of the cauldron, like a water bottle).
RAIN_FILL_CHANCE 5.46.0
php
public const RAIN_FILL_CHANCE = 0.05Chance that rain or snow falling on a cauldron adds to it (vanilla).
SNOW_FILL_CHANCE 5.46.0
php
public const SNOW_FILL_CHANCE = 0.1Methods
addFillLevels() protected
php
protected function addFillLevels(int $amount, \pocketmine\item\Item $usedItem, \pocketmine\item\Item $returnedItem, array &$returnedItems) : voidasItem()
php
public function asItem() : \pocketmine\item\ItemdescribeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidfillByPrecipitation() 5.46.0 protected
php
protected function fillByPrecipitation() : voidAdds levels from rain or snow (no item, no sound).
getEmptySound()
php
abstract public function getEmptySound() : \pocketmine\world\sound\SoundReturns the sound played when removing levels from the cauldron liquid.
getFillLevel()
php
public function getFillLevel() : intgetFillSound()
php
abstract public function getFillSound() : \pocketmine\world\sound\SoundReturns the sound played when adding levels to the cauldron liquid.
getSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypemix() protected
php
protected function mix(\pocketmine\item\Item $usedItem, \pocketmine\item\Item $returnedItem, array &$returnedItems) : voidrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arrayremoveFillLevels() protected
php
protected function removeFillLevels(int $amount, \pocketmine\item\Item $usedItem, \pocketmine\item\Item $returnedItem, array &$returnedItems) : voidsetFillLevel()
php
public function setFillLevel(int $fillLevel) : selfwithFillLevel() protected
php
protected function withFillLevel(int $fillLevel) : \pocketmine\block\Block