WaterCauldron
Extends FillableCauldron
Constants
CLEAN_ARMOR_USE_AMOUNT
php
public const CLEAN_ARMOR_USE_AMOUNT = 1CLEAN_BANNER_USE_AMOUNT
php
public const CLEAN_BANNER_USE_AMOUNT = 1CLEAN_SHULKER_BOX_USE_AMOUNT
php
public const CLEAN_SHULKER_BOX_USE_AMOUNT = 1DYE_ARMOR_USE_AMOUNT
php
public const DYE_ARMOR_USE_AMOUNT = 1ENTITY_EXTINGUISH_USE_AMOUNT
php
public const ENTITY_EXTINGUISH_USE_AMOUNT = 1WATER_BOTTLE_FILL_AMOUNT
php
public const WATER_BOTTLE_FILL_AMOUNT = 2Methods
getCustomWaterColor()
php
public function getCustomWaterColor() : ?\pocketmine\color\ColorgetEmptySound()
php
public function getEmptySound() : \pocketmine\world\sound\SoundgetFillSound()
php
public function getFillSound() : \pocketmine\world\sound\SoundhasEntityCollision()
php
public function hasEntityCollision() : boolonEntityInside()
php
public function onEntityInside(\pocketmine\entity\Entity $entity) : boolonInteract()
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() : voidonPrecipitation() 5.46.0
php
public function onPrecipitation(\pocketmine\world\weather\Precipitation $precipitation) : voidRain fills a water cauldron (5% chance per precipitation update; not dyed water).
readStateFromWorld()
php
public function readStateFromWorld() : \pocketmine\block\BlocksetCustomWaterColor()
php
public function setCustomWaterColor(?\pocketmine\color\Color $customWaterColor) : selfwriteStateToWorld()
php
public function writeStateToWorld() : void