Skip to content

Composter 5.46.0 ​

class · pocketmine\block\Composter · source

Extends Transparent
Implements ComparatorReadable

Constants ​

MAX_COMPOST_LAYERS ​

php
public const MAX_COMPOST_LAYERS = 8

MIN_COMPOST_LAYERS ​

php
public const MIN_COMPOST_LAYERS = 0

Properties ​

$layers protected ​

php
protected int $layers

Methods ​

describeBlockOnlyState() protected ​

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

getComparatorOutput() ​

php
public function getComparatorOutput() : int

getDropsForCompatibleTool() ​

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

getFlameEncouragement() ​

php
public function getFlameEncouragement() : int

getFlammability() ​

php
public function getFlammability() : int

getFuelTime() ​

php
public function getFuelTime() : int

getLayers() ​

php
public function getLayers() : int

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onScheduledUpdate() ​

php
public function onScheduledUpdate() : void

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

setLayers() ​

php
public function setLayers(int $layers) : self

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