EnchantInventory
Extends SimpleInventory
Implements BlockInventory, TemporaryInventory
Constants
SLOT_INPUT
php
public const SLOT_INPUT = 0SLOT_LAPIS
php
public const SLOT_LAPIS = 1Methods
__construct()
php
public function __construct(\pocketmine\world\Position $holder)getInput()
php
public function getInput() : \pocketmine\item\ItemgetLapis()
php
public function getLapis() : \pocketmine\item\ItemgetOption()
php
public function getOption(int $optionId) : ?\pocketmine\item\enchantment\EnchantingOptiongetOutput()
php
public function getOutput(int $optionId) : ?\pocketmine\item\ItemonSlotChange() protected
php
protected function onSlotChange(int $index, \pocketmine\item\Item $before) : void