All Implemented Interfaces:
IInterfaceItem, IItemGetter, IExternalItemGetter

public class PlayerQuestsInterface extends InterfaceItemGetter
  • Constructor Details

    • PlayerQuestsInterface

      public PlayerQuestsInterface(PlayerInterfaceFile playerInterfaceFile)
  • Method Details

    • load

      public void load()
      Load player quests interface.
    • getPlayerQuestsInterface

      public org.bukkit.inventory.Inventory getPlayerQuestsInterface(org.bukkit.entity.Player player)
      Load the player quests inventory for the given player.
      Parameters:
      player - player to load the inventory.
      Returns:
      player quests inventory.
    • getInterfaceName

      public String getInterfaceName(org.bukkit.entity.Player player)
      Get the corresponding text for the interface name.
      Parameters:
      player - player to get the interface name.
      Returns:
      the interface name.
    • isFillItem

      public boolean isFillItem(org.bukkit.inventory.ItemStack itemStack)
      Check if the item is used to fill the inventory.
      Parameters:
      itemStack - item to check.
      Returns:
      true if the item is used to fill the inventory, false otherwise.
    • isCloseItem

      public boolean isCloseItem(org.bukkit.inventory.ItemStack itemStack)
      Check if the item is used to close the inventory.
      Parameters:
      itemStack - item to check.
      Returns:
      true if the item is used to close the inventory, false otherwise.
    • isPlayerCommandItem

      public boolean isPlayerCommandItem(int slot)
      Check if the item is used to execute a command as a player.
      Parameters:
      slot - slot of the item.
      Returns:
      true if the item is used to execute a player command, false otherwise.
    • isConsoleCommandItem

      public boolean isConsoleCommandItem(int slot)
      Check if the item is used to execute a command as a console.
      Parameters:
      slot - slot of the item.
      Returns:
      true if the item is used to execute a console command, false otherwise.
    • getPlayerCommands

      public List<String> getPlayerCommands(int slot)
      Get all player commands that can be executed by the item in the given slot.
      Parameters:
      slot - slot of the item.
      Returns:
      the player commands of the item.
    • getConsoleCommands

      public List<String> getConsoleCommands(int slot)
      Get all console commands that can be executed by the item in the given slot.
      Parameters:
      slot - slot of the item.
      Returns:
      the console commands of the item.
    • getAchievedStr

      public String getAchievedStr()
      Get the achieved string defined in the configuration.
      Returns:
      the achieved string.
    • getProgressStr

      public String getProgressStr()
      Get the status string defined in the configuration.
      Returns:
      the status string.
    • getCompleteGetTypeStr

      public String getCompleteGetTypeStr()
      Get the complete get type string defined in the configuration.
      Returns:
      the complete get type string.