Interface BedWars.ItemUtil

Enclosing interface:
BedWars

public static interface BedWars.ItemUtil
Utility interface for managing lobby items.
  • Method Details

    • getLobbyItems

      Collection<IPermanentItem> getLobbyItems()
      Retrieves the collection of lobby items.
      Returns:
      The collection of lobby items.
    • getSpectatorItems

      Collection<IPermanentItem> getSpectatorItems()
      Retrieves the collection of spectator items.
      Returns:
      The collection of spectator items.
    • getPreGameItems

      Collection<IPermanentItem> getPreGameItems()
      Retrieves the collection of pre-game items.
      Returns:
      The collection of pre-game items.
    • getItemHandlers

      Map<String,IPermanentItemHandler> getItemHandlers()
      Retrieves the map of item handler IDs to permanent item handlers.
      Returns:
      The map of item handler IDs to permanent item handlers.
    • registerItemHandler

      boolean registerItemHandler(IPermanentItemHandler handler) throws IllegalArgumentException
      Registers a permanent item handler.
      Parameters:
      handler - The permanent item handler to register.
      Returns:
      True if the handler was successfully registered; false otherwise.
      Throws:
      IllegalArgumentException - If the handler ID, plugin, or type is not set.