Skip to content

FillableCauldron ​

abstract class · pocketmine\block\FillableCauldron · source

Extends Transparent

Constants ​

MAX_FILL_LEVEL ​

php
public const MAX_FILL_LEVEL = 6

MIN_FILL_LEVEL ​

php
public const MIN_FILL_LEVEL = 1

PRECIPITATION_FILL_AMOUNT 5.46.0 ​

php
public const PRECIPITATION_FILL_AMOUNT = 2

Levels 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.05

Chance 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.1

Methods ​

addFillLevels() protected ​

php
protected function addFillLevels(int $amount, \pocketmine\item\Item $usedItem, \pocketmine\item\Item $returnedItem, array &$returnedItems) : void

asItem() ​

php
public function asItem() : \pocketmine\item\Item

describeBlockOnlyState() protected ​

php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : void

fillByPrecipitation() 5.46.0 protected ​

php
protected function fillByPrecipitation() : void

Adds levels from rain or snow (no item, no sound).

getEmptySound() ​

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

Returns the sound played when removing levels from the cauldron liquid.

getFillLevel() ​

php
public function getFillLevel() : int

getFillSound() ​

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

Returns the sound played when adding levels to the cauldron liquid.

getSupportType() ​

php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportType

mix() protected ​

php
protected function mix(\pocketmine\item\Item $usedItem, \pocketmine\item\Item $returnedItem, array &$returnedItems) : void

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

removeFillLevels() protected ​

php
protected function removeFillLevels(int $amount, \pocketmine\item\Item $usedItem, \pocketmine\item\Item $returnedItem, array &$returnedItems) : void

setFillLevel() ​

php
public function setFillLevel(int $fillLevel) : self

withFillLevel() protected ​

php
protected function withFillLevel(int $fillLevel) : \pocketmine\block\Block

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