public class EventMapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.util.List<org.bukkit.Material> |
blockedCraftingStations
A list of crafting stations to block interactions for, in MMORPG mode.
|
private static java.util.Map<org.bukkit.Material,CustomItem> |
customItemMap
A map of all coustom items for the MMORPG mode, indexed by trigger materials.
|
| Constructor and Description |
|---|
EventMapper() |
| Modifier and Type | Method and Description |
|---|---|
static CustomItem |
getCustomItem(org.bukkit.Material customItemMaterial)
Gets a generic custom item for the MMORPG mode.
|
static void |
handleBlockInteraction(org.bukkit.event.player.PlayerInteractEvent event)
Called when a player interacts with specific blocks.
|
static void |
handleItemInteraction(org.bukkit.event.player.PlayerInteractEvent event)
Called when a player interacts with specific items.
|
static void |
handleMenuClose(org.bukkit.event.inventory.InventoryCloseEvent event)
Called when a player closes an inventory menu.
|
static void |
handleMenuInteraction(org.bukkit.event.inventory.InventoryClickEvent event)
Called when a player interacts with an inventory menu.
|
static void |
handleSurvivalItemInteraction(org.bukkit.event.player.PlayerInteractEvent event)
Called when a Survival player interacts with specific items.
|
static void |
registerCustomItem(CustomItem customItem)
Registers a generic custom item for the MMORPG mode.
|
private static java.util.List<org.bukkit.Material> blockedCraftingStations
private static java.util.Map<org.bukkit.Material,CustomItem> customItemMap
public static CustomItem getCustomItem(org.bukkit.Material customItemMaterial)
customItemMaterial - The material of the item to get.public static void registerCustomItem(CustomItem customItem)
customItem - The custom item to register.public static void handleItemInteraction(org.bukkit.event.player.PlayerInteractEvent event)
event - The interact event.SkillQuickSlots.tryToUse(Player),
Cooldown.playerWeaponUse(Player),
CustomItem.use(PlayerInteractEvent),
WauzTeleporter.enterInstanceTeleportManual(PlayerInteractEvent),
FoodCalculator.tryToConsume(Player, ItemStack),
WauzPetEgg.tryToSummon(PlayerInteractEvent),
handleBlockInteraction(PlayerInteractEvent)public static void handleBlockInteraction(org.bukkit.event.player.PlayerInteractEvent event)
event - The interact event.WauzResource.tryToInteractWithResource(Player, Block),
WauzSigns.interact(Player, Block),
WauzPlayerSit.sit(Player, Block)public static void handleSurvivalItemInteraction(org.bukkit.event.player.PlayerInteractEvent event)
event - The interact event.WauzTeleporter.enterInstanceTeleportManual(PlayerInteractEvent),
DamageCalculator.applyPvPProtection(PlayerInteractEvent),
WauzSigns.interact(Player, org.bukkit.block.Block),
ShopMenu.open(Player, String, String)public static void handleMenuInteraction(org.bukkit.event.inventory.InventoryClickEvent event)
event - The inventory click event.WauzInventoryHolder.selectMenuPoint(InventoryClickEvent),
MenuUtils.onSpecialItemInventoryClick(InventoryClickEvent)public static void handleMenuClose(org.bukkit.event.inventory.InventoryCloseEvent event)
event - The inventory close event.WauzInventoryHolder.destroyInventory(InventoryCloseEvent)