Skip to content

PlayerEnchantingOptionsRequestEvent ​

class · pocketmine\event\player\PlayerEnchantingOptionsRequestEvent · source

Extends PlayerEvent
Implements Cancellable

Called when a player inserts an item into an enchanting table's input slot. The options provided by the event will be shown on the enchanting table menu.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $player, \pocketmine\block\inventory\EnchantInventory $inventory, array $options)

getInventory() ​

php
public function getInventory() : \pocketmine\block\inventory\EnchantInventory

getOptions() ​

php
public function getOptions() : array

setOptions() ​

php
public function setOptions(array $options) : void

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