Skip to content

SeaPickle ​

class · pocketmine\block\SeaPickle · source

Extends Transparent
Implements Waterlogged

Constants ​

MAX_COUNT ​

php
public const MAX_COUNT = 4

MIN_COUNT ​

php
public const MIN_COUNT = 1

Properties ​

$count protected ​

php
protected int $count

$underwater protected ​

php
protected bool $underwater

Methods ​

canBePlacedAt() ​

php
public function canBePlacedAt(\pocketmine\block\Block $blockReplace, \pocketmine\math\Vector3 $clickVector, int $face, bool $isClickedBlock) : bool

describeBlockOnlyState() protected ​

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

getCompostabilityChance() 5.46.0 ​

php
public function getCompostabilityChance() : int

getCount() ​

php
public function getCount() : int

getDropsForCompatibleTool() ​

php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : array

getLightLevel() ​

php
public function getLightLevel() : int

getSupportType() ​

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

hasEntityCollision() 5.46.0 ​

php
public function hasEntityCollision() : bool

isSolid() ​

php
public function isSolid() : bool

isUnderwater() ​

php
public function isUnderwater() : bool

isWaterlogged() 5.46.0 ​

php
public function isWaterlogged() : bool

onBreak() 5.46.0 ​

php
public function onBreak(\pocketmine\item\Item $item, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onEntityInside() 5.46.0 ​

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() 5.46.0 ​

php
public function onNearbyBlockChange() : void

onScheduledUpdate() 5.46.0 ​

php
public function onScheduledUpdate() : void

place() ​

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) : bool

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setCount() ​

php
public function setCount(int $count) : self

setUnderwater() ​

php
public function setUnderwater(bool $underwater) : self

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