Leaves
Extends Transparent
Properties
$checkDecay protected
php
protected bool $checkDecay$leavesType protected
php
protected \pocketmine\block\utils\LeavesType $leavesType$noDecay protected
php
protected bool $noDecayMethods
__construct()
php
public function __construct(\pocketmine\block\BlockIdentifier $idInfo, string $name, \pocketmine\block\BlockTypeInfo $typeInfo, \pocketmine\block\utils\LeavesType $leavesType)blocksDirectSkyLight()
php
public function blocksDirectSkyLight() : booldescribeBlockOnlyState() protected
php
protected function describeBlockOnlyState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidfindLog() protected
php
protected function findLog(\pocketmine\math\Vector3 $pos, array &$visited = [], int $distance = 0) : boolgetCompostabilityChance() 5.46.0
php
public function getCompostabilityChance() : intgetDropsForCompatibleTool()
php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : arraygetFlameEncouragement()
php
public function getFlameEncouragement() : intgetFlammability()
php
public function getFlammability() : intgetLeavesType()
php
public function getLeavesType() : \pocketmine\block\utils\LeavesTypegetSupportType()
php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportTypeisAffectedBySilkTouch()
php
public function isAffectedBySilkTouch() : boolisCheckDecay()
php
public function isCheckDecay() : boolisNoDecay()
php
public function isNoDecay() : boolonNearbyBlockChange()
php
public function onNearbyBlockChange() : voidonRandomTick()
php
public function onRandomTick() : 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) : boolsetCheckDecay()
php
public function setCheckDecay(bool $checkDecay) : selfsetNoDecay()
php
public function setNoDecay(bool $noDecay) : selfticksRandomly()
php
public function ticksRandomly() : bool