public class ArrowMenu extends java.lang.Object implements WauzInventory
CustomWeaponBow
Constructor and Description |
---|
ArrowMenu() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
getArrowDescription(java.lang.String arrowType)
Gets the colored description of the given arrow type.
|
private static org.bukkit.potion.PotionType |
getArrowTipPotion(java.lang.String arrowType)
Gets the potion type to color the tip of the given arrow type in.
|
private static org.bukkit.inventory.ItemStack |
getArrowType(org.bukkit.entity.Player player,
java.lang.String selectedArrowType,
java.lang.String arrowType,
org.bukkit.Material material)
Generates an item stack, to show infos about a selectable arrow type.
|
java.util.List<WauzMode> |
getGamemodes() |
java.lang.String |
getInventoryId() |
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.PlayerConfigurator.getSelectedArrows(Player)
,
getArrowType(Player, String, String, Material)
,
MenuUtils.setBorders(Inventory)
private static org.bukkit.inventory.ItemStack getArrowType(org.bukkit.entity.Player player, java.lang.String selectedArrowType, java.lang.String arrowType, org.bukkit.Material material)
player
- The player who owns the arrows.selectedArrowType
- The selected type arrow.arrowType
- The type of the arrow for this stack.material
- The arrow material. (Normal, Spectral, Tipped...)private static java.lang.String getArrowDescription(java.lang.String arrowType)
arrowType
- The type of the arrow.private static org.bukkit.potion.PotionType getArrowTipPotion(java.lang.String arrowType)
arrowType
- The type of the arrow.public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint
in interface WauzInventory
event
- The inventory click event.ItemUtils.getArrowCount(ItemStack)
,
PlayerConfigurator.setSelectedArrowType(Player, String)