PinkPetals
Extends Flowable
Implements HorizontalFacing
Constants
MAX_COUNT
php
public const MAX_COUNT = 4MIN_COUNT
php
public const MIN_COUNT = 1Properties
$count protected
php
protected int $countMethods
canBePlacedAt()
php
public function canBePlacedAt(\pocketmine\block\Block $blockReplace, \pocketmine\math\Vector3 $clickVector, int $face, bool $isClickedBlock) : boolcanBeSupportedAt() 5.46.0 protected
php
protected function canBeSupportedAt(\pocketmine\block\Block $block) : 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) : arraygetFlameEncouragement()
php
public function getFlameEncouragement() : intgetFlammability()
php
public function getFlammability() : intonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolplace()
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) : boolsetCount()
php
public function setCount(int $count) : self