public class TabardMenu extends java.lang.Object implements WauzInventory
TabardBuilder
Constructor and Description |
---|
TabardMenu() |
Modifier and Type | Method and Description |
---|---|
static void |
equipSelectedTabard(org.bukkit.entity.Player player)
Lets the player equip the tabard that has been set in their config.
|
java.util.List<WauzMode> |
getGamemodes() |
java.lang.String |
getInventoryId() |
private static org.bukkit.inventory.ItemStack |
getTabardByName(org.bukkit.entity.Player player,
java.lang.String tabardName)
Creates a banner item stack for the given tabard name,
that is either based on a preset, a custom guild tabard, or a barrier menu item, able to unequip the current tabard.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroyInventory
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.getTabardByName(Player, String)
,
MenuUtils.setBorders(Inventory)
public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint
in interface WauzInventory
event
- The inventory click event.PlayerConfigurator.setCharacterTabard(Player, String)
,
equipSelectedTabard(Player)
public static void equipSelectedTabard(org.bukkit.entity.Player player)
player
- The player that should equip the tabard.PlayerConfigurator.getCharacterTabard(Player)
,
getTabardByName(Player, String)
private static org.bukkit.inventory.ItemStack getTabardByName(org.bukkit.entity.Player player, java.lang.String tabardName)
player
- The player who requested the tabard.tabardName
- The name of the requested tabard.