Liquid
Extends Transparent
Constants
MAX_DECAY
php
public const MAX_DECAY = 7Properties
$adjacentSources
php
public int $adjacentSources$decay protected
php
protected int $decay$falling protected
php
protected bool $falling$flowVector protected
php
protected ?\pocketmine\math\Vector3 $flowVector$still protected
php
protected bool $stillMethods
addVelocityToEntity()
php
public function addVelocityToEntity(\pocketmine\entity\Entity $entity) : ?\pocketmine\math\Vector3canBeFlowedInto()
php
public function canBeFlowedInto() : boolcanBeReplaced()
php
public function canBeReplaced() : boolcanFlowInto() protected
php
protected function canFlowInto(\pocketmine\block\Block $block) : boolcheckForHarden() protected
php
protected function checkForHarden() : booldescribeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidflowIntoBlock() protected
php
protected function flowIntoBlock(\pocketmine\block\Block $block, int $newFlowDecay, bool $falling) : voidgetBucketEmptySound()
php
abstract public function getBucketEmptySound() : \pocketmine\world\sound\SoundgetBucketFillSound()
php
abstract public function getBucketFillSound() : \pocketmine\world\sound\SoundgetDecay()
php
public function getDecay() : intgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetEffectiveFlowDecay() protected
php
protected function getEffectiveFlowDecay(\pocketmine\block\Block $block) : intgetFlowDecayPerBlock()
php
public function getFlowDecayPerBlock() : intReturns how many liquid levels are lost per block flowed horizontally. Affects how far the liquid can flow.
getFlowVector()
php
public function getFlowVector() : \pocketmine\math\Vector3getFlowingForm()
php
public function getFlowingForm() : \pocketmine\block\BlockgetFluidHeightPercent()
php
public function getFluidHeightPercent()getMinAdjacentSourcesToFormSource()
php
public function getMinAdjacentSourcesToFormSource() : ?intReturns the number of source blocks of this liquid that must be horizontally adjacent to this block in order for this block to become a source block itself, or null if the liquid does not exhibit source-forming behaviour.
getStillForm()
php
public function getStillForm() : \pocketmine\block\BlockgetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypehasEntityCollision()
php
public function hasEntityCollision() : boolisFalling()
php
public function isFalling() : boolisSolid()
php
public function isSolid() : boolisSource()
php
public function isSource() : boolisStill()
php
public function isStill() : boolliquidCollide() protected
php
protected function liquidCollide(\pocketmine\block\Block $cause, \pocketmine\block\Block $result) : boolonNearbyBlockChange()
php
public function onNearbyBlockChange() : voidonScheduledUpdate()
php
public function onScheduledUpdate() : voidreadStateFromWorld()
php
public function readStateFromWorld() : \pocketmine\block\BlockrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arraysetDecay()
php
public function setDecay(int $decay) : selfsetFalling()
php
public function setFalling(bool $falling) : selfsetStill()
php
public function setStill(bool $still = true) : selftickRate()
php
abstract public function tickRate() : int