public class SkillAssignMenu extends java.lang.Object implements WauzInventory
PlayerSkillConfigurator
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
page
The name of the current assignment page view.
|
private int |
slot
The quick slot, the skill should be assigned to.
|
Constructor and Description |
---|
SkillAssignMenu() |
Modifier and Type | Method and Description |
---|---|
java.util.List<WauzMode> |
getGamemodes() |
java.lang.String |
getInventoryId() |
static org.bukkit.inventory.ItemStack |
getQuickSlotInfoItemStack()
Gets an item stack, displaying general information about quick slots.
|
static void |
open(org.bukkit.entity.Player player)
Opens the menu for the given player.
|
void |
openInstance(org.bukkit.entity.Player player)
Opens a new inventory of this type for the given player.
|
void |
selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
Checks if an event in this inventory was triggered by a player click.
|
void |
showSkillSelection(org.bukkit.entity.Player player)
Opens the skill list to choose from for the given player.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroyInventory
private java.lang.String page
private int slot
public java.lang.String getInventoryId()
getInventoryId
in interface WauzInventory
public java.util.List<WauzMode> getGamemodes()
getGamemodes
in interface WauzInventory
public void openInstance(org.bukkit.entity.Player player)
openInstance
in interface WauzInventory
player
- The player that should view the inventory.public static void open(org.bukkit.entity.Player player)
player
- The player that should view the inventory.getQuickSlotInfoItemStack()
,
SkillQuickSlots.getCastableInfo(Player, int)
,
MenuUtils.setMenuItem(Inventory, int, ItemStack, String, List)
,
MenuUtils.setBorders(Inventory)
public static org.bukkit.inventory.ItemStack getQuickSlotInfoItemStack()
public void showSkillSelection(org.bukkit.entity.Player player)
player
- The player that should view the inventory.WauzPlayerDataSectionSkills.getUnlockedCastables()
,
getQuickSlotInfoItemStack()
,
Castable.getAssignmentItem()
,
MenuUtils.setBorders(Inventory)
public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint
in interface WauzInventory
event
- The inventory click event.showSkillSelection(Player)
,
SkillMenu.open(Player)
,
PlayerSkillConfigurator.setQuickSlotSkill(Player, int, String)