public class TitleMenu extends java.lang.Object implements WauzInventory
WauzTitle| Constructor and Description |
|---|
TitleMenu() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<WauzMode> |
getGamemodes() |
java.lang.String |
getInventoryId() |
private static org.bukkit.inventory.ItemStack |
getTitleItemStack(java.lang.String titleName,
java.lang.String displayName,
int level,
int cost,
boolean unlocked,
boolean selected)
Creates an item stack, that represents a chat title.
|
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, waitdestroyInventorypublic java.lang.String getInventoryId()
getInventoryId in interface WauzInventorypublic java.util.List<WauzMode> getGamemodes()
getGamemodes in interface WauzInventorypublic void openInstance(org.bukkit.entity.Player player)
openInstance in interface WauzInventoryplayer - The player that should view the inventory.public static void open(org.bukkit.entity.Player player)
player - The player that should view the inventory.private static org.bukkit.inventory.ItemStack getTitleItemStack(java.lang.String titleName,
java.lang.String displayName,
int level,
int cost,
boolean unlocked,
boolean selected)
titleName - The key of the title.displayName - The chat display name of the title.level - The required level of the title.cost - The soulstone cost of the title.unlocked - If the title has been unlocked.selected - If the title is currently selected.public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint in interface WauzInventoryevent - The inventory click event.PlayerConfigurator.setCharacterTitle(Player, String),
WauzPlayerEventTitleBuy