Class PermanentItemHandler
java.lang.Object
com.tomkeuper.bedwars.api.items.handlers.PermanentItemHandler
- All Implemented Interfaces:
IPermanentItemHandler
-
Constructor Summary
ConstructorsConstructorDescriptionPermanentItemHandler
(@NotNull String id, @NotNull org.bukkit.plugin.Plugin plugin, BedWars api) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
getId()
Gets the ID of the permanent item handler.final org.bukkit.plugin.Plugin
Gets the plugin associated with the permanent item handler.getType()
Gets the type of the permanent item handler.final boolean
Checks if the permanent item handler is registered.boolean
Checks if the permanent item should be visible to the player in the arena.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tomkeuper.bedwars.api.items.handlers.IPermanentItemHandler
handleUse
-
Constructor Details
-
PermanentItemHandler
-
-
Method Details
-
isVisible
Description copied from interface:IPermanentItemHandler
Checks if the permanent item should be visible to the player in the arena.- Specified by:
isVisible
in interfaceIPermanentItemHandler
- 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
Description copied from interface:IPermanentItemHandler
Gets the ID of the permanent item handler.- Specified by:
getId
in interfaceIPermanentItemHandler
- Returns:
- The ID of the handler.
-
getPlugin
public final org.bukkit.plugin.Plugin getPlugin()Description copied from interface:IPermanentItemHandler
Gets the plugin associated with the permanent item handler.- Specified by:
getPlugin
in interfaceIPermanentItemHandler
- Returns:
- The plugin associated with the handler.
-
getType
Description copied from interface:IPermanentItemHandler
Gets the type of the permanent item handler.- Specified by:
getType
in interfaceIPermanentItemHandler
- Returns:
- The type of the handler.
-
isRegistered
public final boolean isRegistered()Description copied from interface:IPermanentItemHandler
Checks if the permanent item handler is registered.- Specified by:
isRegistered
in interfaceIPermanentItemHandler
- Returns:
- True if the handler is registered; false otherwise.
-