Interface UpgradesIndex


public interface UpgradesIndex
  • 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 use BedWars.TeamUpgradesUtil.setWatchingGUI(Player)
      Parameters:
      player - target player.
    • addContent

      boolean addContent(MenuContent content, int slot)
      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()