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 StringgetId()Gets the ID of the permanent item handler.final org.bukkit.plugin.PluginGets the plugin associated with the permanent item handler.getType()Gets the type of the permanent item handler.final booleanChecks if the permanent item handler is registered.booleanChecks 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, waitMethods inherited from interface com.tomkeuper.bedwars.api.items.handlers.IPermanentItemHandler
handleUse
-
Constructor Details
-
PermanentItemHandler
-
-
Method Details
-
isVisible
Description copied from interface:IPermanentItemHandlerChecks if the permanent item should be visible to the player in the arena.- Specified by:
isVisiblein 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:IPermanentItemHandlerGets the ID of the permanent item handler.- Specified by:
getIdin interfaceIPermanentItemHandler- Returns:
- The ID of the handler.
-
getPlugin
public final org.bukkit.plugin.Plugin getPlugin()Description copied from interface:IPermanentItemHandlerGets the plugin associated with the permanent item handler.- Specified by:
getPluginin interfaceIPermanentItemHandler- Returns:
- The plugin associated with the handler.
-
getType
Description copied from interface:IPermanentItemHandlerGets the type of the permanent item handler.- Specified by:
getTypein interfaceIPermanentItemHandler- Returns:
- The type of the handler.
-
isRegistered
public final boolean isRegistered()Description copied from interface:IPermanentItemHandlerChecks if the permanent item handler is registered.- Specified by:
isRegisteredin interfaceIPermanentItemHandler- Returns:
- True if the handler is registered; false otherwise.
-