Skip to content

ComposterFillEvent 5.46.0 ​

class · pocketmine\event\block\ComposterFillEvent · source

Extends BlockEvent
Implements Cancellable

Properties ​

$item ​

php
public \pocketmine\item\Item $item

$newFillLayer ​

php
public int $newFillLayer

$oldFillLayer ​

php
public int $oldFillLayer

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\Block $block, \pocketmine\item\Item $item, int $oldFillLayer, int $newFillLayer)

getItem() ​

php
public function getItem() : \pocketmine\item\Item

getNewFillLayer() ​

php
public function getNewFillLayer() : int

getOldFillLayer() ​

php
public function getOldFillLayer() : int

setNewFillLayer() ​

php
public function setNewFillLayer(int $layer) : void

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