Class PermanentItemHandler

java.lang.Object
com.tomkeuper.bedwars.api.items.handlers.PermanentItemHandler
All Implemented Interfaces:
IPermanentItemHandler

public abstract class PermanentItemHandler extends Object implements IPermanentItemHandler
  • Constructor Details

    • PermanentItemHandler

      public PermanentItemHandler(@NotNull @NotNull String id, @NotNull @NotNull org.bukkit.plugin.Plugin plugin, BedWars api)
  • Method Details

    • isVisible

      public boolean isVisible(org.bukkit.entity.Player player, IArena arena)
      Description copied from interface: IPermanentItemHandler
      Checks if the permanent item should be visible to the player in the arena.
      Specified by:
      isVisible in interface IPermanentItemHandler
      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

      public final String getId()
      Description copied from interface: IPermanentItemHandler
      Gets the ID of the permanent item handler.
      Specified by:
      getId in interface IPermanentItemHandler
      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 interface IPermanentItemHandler
      Returns:
      The plugin associated with the handler.
    • getType

      public HandlerType getType()
      Description copied from interface: IPermanentItemHandler
      Gets the type of the permanent item handler.
      Specified by:
      getType in interface IPermanentItemHandler
      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 interface IPermanentItemHandler
      Returns:
      True if the handler is registered; false otherwise.