SeaPickle
Extends Transparent
Implements Waterlogged
Constants
MAX_COUNT
php
public const MAX_COUNT = 4MIN_COUNT
php
public const MIN_COUNT = 1Properties
$count protected
php
protected int $count$underwater protected
php
protected bool $underwaterMethods
canBePlacedAt()
php
public function canBePlacedAt(\pocketmine\block\Block $blockReplace, \pocketmine\math\Vector3 $clickVector, int $face, bool $isClickedBlock) : booldescribeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetCompostabilityChance() 5.46.0
php
public function getCompostabilityChance() : intgetCount()
php
public function getCount() : intgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetLightLevel()
php
public function getLightLevel() : intgetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypehasEntityCollision() 5.46.0
php
public function hasEntityCollision() : boolisSolid()
php
public function isSolid() : boolisUnderwater()
php
public function isUnderwater() : boolisWaterlogged() 5.46.0
php
public function isWaterlogged() : boolonBreak() 5.46.0
php
public function onBreak(\pocketmine\item\Item $item, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonEntityInside() 5.46.0
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() 5.46.0
php
public function onNearbyBlockChange() : voidonScheduledUpdate() 5.46.0
php
public function onScheduledUpdate() : voidplace()
php
public function place(\pocketmine\world\BlockTransaction $tx, \pocketmine\item\Item $item, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null) : boolrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arraysetCount()
php
public function setCount(int $count) : selfsetUnderwater()
php
public function setUnderwater(bool $underwater) : self