Interface UpgradesIndex
public interface UpgradesIndex
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addContent
(MenuContent content, int slot) Add content to a menu.int
com.google.common.collect.ImmutableMap<Integer,
MenuContent> getName()
Get menu name.void
open
(org.bukkit.entity.Player player) Open this menu to a player.
-
Method Details
-
getName
String getName()Get menu name. -
open
void open(org.bukkit.entity.Player player) Open this menu to a player. Make sure to useBedWars.TeamUpgradesUtil.setWatchingGUI(Player)
- Parameters:
player
- target player.
-
addContent
Add content to a menu.- Parameters:
content
- content instance.slot
- where to put the content in the menu.- Returns:
- false if te given slot is in use.
-
countTiers
int countTiers()- Returns:
- total amount of tiers in upgrades
-
getMenuContentBySlot
com.google.common.collect.ImmutableMap<Integer,MenuContent> getMenuContentBySlot()
-