Skip to content

EnchantInventory ​

class · pocketmine\block\inventory\EnchantInventory · source

Extends SimpleInventory
Implements BlockInventory, TemporaryInventory

Constants ​

SLOT_INPUT ​

php
public const SLOT_INPUT = 0

SLOT_LAPIS ​

php
public const SLOT_LAPIS = 1

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\Position $holder)

getInput() ​

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

getLapis() ​

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

getOption() ​

php
public function getOption(int $optionId) : ?\pocketmine\item\enchantment\EnchantingOption

getOutput() ​

php
public function getOutput(int $optionId) : ?\pocketmine\item\Item

onSlotChange() protected ​

php
protected function onSlotChange(int $index, \pocketmine\item\Item $before) : void

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