Skip to content

Leaves ​

class · pocketmine\block\Leaves · source

Extends Transparent

Properties ​

$checkDecay protected ​

php
protected bool $checkDecay

$leavesType protected ​

php
protected \pocketmine\block\utils\LeavesType $leavesType

$noDecay protected ​

php
protected bool $noDecay

Methods ​

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

describeBlockOnlyState() protected ​

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

findLog() protected ​

php
protected function findLog(\pocketmine\math\Vector3 $pos, array &$visited = [], int $distance = 0) : bool

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

getLeavesType() ​

php
public function getLeavesType() : \pocketmine\block\utils\LeavesType

getSupportType() ​

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

isAffectedBySilkTouch() ​

php
public function isAffectedBySilkTouch() : bool

isCheckDecay() ​

php
public function isCheckDecay() : bool

isNoDecay() ​

php
public function isNoDecay() : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

onRandomTick() ​

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

setCheckDecay() ​

php
public function setCheckDecay(bool $checkDecay) : self

setNoDecay() ​

php
public function setNoDecay(bool $noDecay) : self

ticksRandomly() ​

php
public function ticksRandomly() : bool

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