Interface IPermanentItemHandler
- All Known Implementing Classes:
PermanentItemHandler
public interface IPermanentItemHandler
Interface for handling permanent lobby items.
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Gets the ID of the permanent item handler.org.bukkit.plugin.Plugin
Gets the plugin associated with the permanent item handler.getType()
Gets the type of the permanent item handler.void
handleUse
(org.bukkit.entity.Player player, IArena arena, IPermanentItem item) Handles the use of a permanent item by a player in an arena.boolean
Checks if the permanent item handler is registered.boolean
Checks if the permanent item should be visible to the player in the arena.
-
Method Details
-
handleUse
Handles the use of a permanent item by a player in an arena.- Parameters:
player
- The player who used the item.arena
- The arena where the item was used.item
- The permanent item that was used.
-
isVisible
Checks if the permanent item should be visible to the player in the arena.- Parameters:
player
- The player viewing the item.arena
- The arena where the item is located.- Returns:
- True if the lobby item should be visible; false otherwise.
-
getId
String getId()Gets the ID of the permanent item handler.- Returns:
- The ID of the handler.
-
getPlugin
org.bukkit.plugin.Plugin getPlugin()Gets the plugin associated with the permanent item handler.- Returns:
- The plugin associated with the handler.
-
getType
HandlerType getType()Gets the type of the permanent item handler.- Returns:
- The type of the handler.
-
isRegistered
boolean isRegistered()Checks if the permanent item handler is registered.- Returns:
- True if the handler is registered; false otherwise.
-