PlayerEnchantingOptionsRequestEvent
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\EnchantInventorygetOptions()
php
public function getOptions() : arraysetOptions()
php
public function setOptions(array $options) : void