Skip to content

PinkPetals ​

class · pocketmine\block\PinkPetals · source

Extends Flowable
Implements HorizontalFacing

Constants ​

MAX_COUNT ​

php
public const MAX_COUNT = 4

MIN_COUNT ​

php
public const MIN_COUNT = 1

Properties ​

$count protected ​

php
protected int $count

Methods ​

canBePlacedAt() ​

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

canBeSupportedAt() 5.46.0 protected ​

php
protected function canBeSupportedAt(\pocketmine\block\Block $block) : 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

getFlameEncouragement() ​

php
public function getFlameEncouragement() : int

getFlammability() ​

php
public function getFlammability() : int

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

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

setCount() ​

php
public function setCount(int $count) : self

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