Package com.tomkeuper.bedwars.api
Interface BedWars.ItemUtil
- Enclosing interface:
BedWars
public static interface BedWars.ItemUtil
Utility interface for managing lobby items.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the map of item handler IDs to permanent item handlers.Retrieves the collection of lobby items.Retrieves the collection of pre-game items.Retrieves the collection of spectator items.boolean
registerItemHandler
(IPermanentItemHandler handler) Registers a permanent item handler.
-
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
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.
-