public class InventoryListener
extends java.lang.Object
implements org.bukkit.event.Listener
Constructor and Description |
---|
InventoryListener() |
Modifier and Type | Method and Description |
---|---|
void |
onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
Lets the mapper decide how to handle the interaction with an inventory menu.
|
void |
onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
Lets the mapper decide how to handle the closing of an inventory menu.
|
void |
onInventoryOpen(org.bukkit.event.inventory.InventoryOpenEvent event)
Closes the current inventory when opening a new inventory.
|
void |
onItemCraft(org.bukkit.event.inventory.PrepareItemCraftEvent event)
Prevents MMORPG players from crafting with normal Minecraft recipes.
|
void |
onItemDrop(org.bukkit.event.player.PlayerDropItemEvent event)
Updates the scoreboard of an MMORPG player,
in case they dropped an item that is relevant to a quest.
|
void |
onSwapItem(org.bukkit.event.player.PlayerSwapHandItemsEvent event)
Handles swapping action bars, instead of items in MMORPG mode.
|
public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
event
- The click event.EventMapper.handleMenuInteraction(InventoryClickEvent)
public void onInventoryOpen(org.bukkit.event.inventory.InventoryOpenEvent event)
event
- The open event.public void onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
event
- The close event.EventMapper.handleMenuClose(InventoryCloseEvent)
public void onItemDrop(org.bukkit.event.player.PlayerDropItemEvent event)
event
- The drop event.WauzPlayerScoreboard.scheduleScoreboardRefresh(Player)
,
MenuUtils.checkForStaticItemDrop(PlayerDropItemEvent)
public void onSwapItem(org.bukkit.event.player.PlayerSwapHandItemsEvent event)
event
- The swap event.CombatMapper.handleSwapEvent(PlayerSwapHandItemsEvent)
public void onItemCraft(org.bukkit.event.inventory.PrepareItemCraftEvent event)
event
- The craft event.