ItemBlock
Extends Item
Class used for Items that directly represent blocks, such as stone, dirt, wood etc.
This should NOT be used for items which are merely associated with blocks (e.g. seeds are not wheat crops; they just place wheat crops when used on the ground).
Methods
__construct()
php
public function __construct(\pocketmine\block\Block $block)describeState() protected
php
protected function describeState(\pocketmine\data\runtime\RuntimeDataDescriber $w) : voidgetBlock()
php
public function getBlock(?int $clickedFace = null) : \pocketmine\block\BlockgetCompostabilityChance() 5.46.0
php
public function getCompostabilityChance() : intgetFuelTime()
php
public function getFuelTime() : intgetMaxStackSize()
php
public function getMaxStackSize() : intisCompostable() 5.46.0
php
public function isCompostable() : boolisFireProof()
php
public function isFireProof() : boolisNull()
php
public function isNull() : bool