Skip to content

WaterCauldron ​

final class · pocketmine\block\WaterCauldron · source

Extends FillableCauldron

Constants ​

CLEAN_ARMOR_USE_AMOUNT ​

php
public const CLEAN_ARMOR_USE_AMOUNT = 1

CLEAN_BANNER_USE_AMOUNT ​

php
public const CLEAN_BANNER_USE_AMOUNT = 1

CLEAN_SHULKER_BOX_USE_AMOUNT ​

php
public const CLEAN_SHULKER_BOX_USE_AMOUNT = 1

DYE_ARMOR_USE_AMOUNT ​

php
public const DYE_ARMOR_USE_AMOUNT = 1

ENTITY_EXTINGUISH_USE_AMOUNT ​

php
public const ENTITY_EXTINGUISH_USE_AMOUNT = 1

WATER_BOTTLE_FILL_AMOUNT ​

php
public const WATER_BOTTLE_FILL_AMOUNT = 2

Methods ​

getCustomWaterColor() ​

php
public function getCustomWaterColor() : ?\pocketmine\color\Color

getEmptySound() ​

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

getFillSound() ​

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

hasEntityCollision() ​

php
public function hasEntityCollision() : bool

onEntityInside() ​

php
public function onEntityInside(\pocketmine\entity\Entity $entity) : bool

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

onPrecipitation() 5.46.0 ​

php
public function onPrecipitation(\pocketmine\world\weather\Precipitation $precipitation) : void

Rain fills a water cauldron (5% chance per precipitation update; not dyed water).

readStateFromWorld() ​

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

setCustomWaterColor() ​

php
public function setCustomWaterColor(?\pocketmine\color\Color $customWaterColor) : 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.