Skip to content

SmallDripleaf ​

class · pocketmine\block\SmallDripleaf · source

Extends Transparent
Implements HorizontalFacing

Properties ​

$top protected ​

php
protected bool $top

Methods ​

describeBlockOnlyState() ​

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

getAffectedBlocks() ​

php
public function getAffectedBlocks() : array

getCompostabilityChance() 5.46.0 ​

php
public function getCompostabilityChance() : int

getDropsForCompatibleTool() ​

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

getFlameEncouragement() ​

php
public function getFlameEncouragement() : int

getFlammability() ​

php
public function getFlammability() : int

getSupportType() ​

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

isTop() ​

php
public function isTop() : 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() ​

php
public function onNearbyBlockChange() : 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

setTop() ​

php
public function setTop(bool $top) : self

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