PocketMine-MP 5.33.2 git-1133d49c924b4358c79d44eeb97dcbf56cb4d1eb
|
Public Member Functions | |
__construct (Player $player, private readonly EnchantingTableInventoryWindow $inventory, private array $options) | |
call () | |
getEventName () | |
getInventory () | |
getOptions () | |
getPlayer () | |
isCancelled () | |
setOptions (array $options) | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
string | $eventName = null |
Player | $player |
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.
Definition at line 38 of file PlayerEnchantingOptionsRequestEvent.php.
pocketmine\event\player\PlayerEnchantingOptionsRequestEvent::__construct | ( | Player | $player, |
private readonly EnchantingTableInventoryWindow | $inventory, | ||
private array | $options ) |
EnchantingOption[] | $options |
Definition at line 44 of file PlayerEnchantingOptionsRequestEvent.php.
|
inherited |
pocketmine\event\player\PlayerEnchantingOptionsRequestEvent::getInventory | ( | ) |
Definition at line 52 of file PlayerEnchantingOptionsRequestEvent.php.
pocketmine\event\player\PlayerEnchantingOptionsRequestEvent::getOptions | ( | ) |
Definition at line 59 of file PlayerEnchantingOptionsRequestEvent.php.
|
inherited |
Definition at line 35 of file PlayerEvent.php.
|
staticinherited |
|
inherited |
Returns whether this instance of the event is currently cancelled.
If it is cancelled, only downstream handlers that declare @handleCancelled
will be called with this event.
pocketmine\event\player\PlayerEnchantingOptionsRequestEvent::setOptions | ( | array | $options | ) |
EnchantingOption[] | $options |
Definition at line 66 of file PlayerEnchantingOptionsRequestEvent.php.
|
protectedinherited |
|
protectedinherited |
Definition at line 33 of file PlayerEvent.php.