Skip to content

ItemBlock ​

final class · pocketmine\item\ItemBlock · source

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) : void

getBlock() ​

php
public function getBlock(?int $clickedFace = null) : \pocketmine\block\Block

getCompostabilityChance() 5.46.0 ​

php
public function getCompostabilityChance() : int

getFuelTime() ​

php
public function getFuelTime() : int

getMaxStackSize() ​

php
public function getMaxStackSize() : int

isCompostable() 5.46.0 ​

php
public function isCompostable() : bool

isFireProof() ​

php
public function isFireProof() : bool

isNull() ​

php
public function isNull() : bool

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