All Implemented Interfaces:
IInterfaceItem, IItemGetter, IExternalItemGetter
Direct Known Subclasses:
PlayerQuestsInterface

public class InterfaceItemGetter extends ItemGetter implements IInterfaceItem
  • Constructor Details

    • InterfaceItemGetter

      public InterfaceItemGetter()
  • Method Details

    • getItem

      public org.bukkit.inventory.ItemStack getItem(String material, String itemIndex, String parameter)
      Get an item from a string.
      Specified by:
      getItem in interface IInterfaceItem
      Parameters:
      material - the material of the item
      itemIndex - the index of the item in the file
      parameter - the parameter involved
      Returns:
      the ItemStack or null if the item cannot be loaded
    • getOraxenItem

      public org.bukkit.inventory.ItemStack getOraxenItem(String namespace, String itemIndex, String parameter)
      Get an item from Oraxen.
      Specified by:
      getOraxenItem in interface IInterfaceItem
      Parameters:
      namespace - the namespace of the item
      itemIndex - the index of the item in the file
      parameter - the parameter involved
      Returns:
      the ItemStack or null if the item cannot be loaded
    • getNexoItem

      public org.bukkit.inventory.ItemStack getNexoItem(String namespace, String itemIndex, String parameter)
      Get an item from Nexo.
      Specified by:
      getNexoItem in interface IInterfaceItem
      Parameters:
      namespace - the namespace of the item
      itemIndex - the index of the item in the file
      parameter - the parameter involved
      Returns:
      the ItemStack or null if the item cannot be loaded
    • getItemsAdderItem

      public org.bukkit.inventory.ItemStack getItemsAdderItem(String namespace, String itemIndex, String parameter)
      Get an item from ItemsAdder.
      Specified by:
      getItemsAdderItem in interface IInterfaceItem
      Parameters:
      namespace - the namespace of the item
      itemIndex - the index of the item in the file
      parameter - the parameter involved
      Returns:
      the ItemStack or null if the item cannot be loaded
    • getMMOItemsItem

      public org.bukkit.inventory.ItemStack getMMOItemsItem(String namespace, String itemIndex, String parameter)
      Get an item from MMOItems.
      Specified by:
      getMMOItemsItem in interface IInterfaceItem
      Parameters:
      namespace - the namespace of the item
      itemIndex - the index of the item in the file
      parameter - the parameter involved
      Returns:
      the ItemStack or null if the item cannot be loaded
    • getCustomHead

      public org.bukkit.inventory.ItemStack getCustomHead(String texture, String questIndex, String parameter)
      Get a custom head.
      Specified by:
      getCustomHead in interface IInterfaceItem
      Parameters:
      texture - the texture of the head
      questIndex - the index of the quest in the file
      parameter - the parameter involved
      Returns:
      the ItemStack or null if the item cannot be loaded
    • getCustomModelDataItem

      public org.bukkit.inventory.ItemStack getCustomModelDataItem(String customModelData, String questIndex, String parameter)
      Get an item with custom model data.
      Specified by:
      getCustomModelDataItem in interface IInterfaceItem
      Parameters:
      customModelData - the custom model data of the item
      questIndex - the index of the quest in the file
      parameter - the parameter involved
      Returns:
      the ItemStack or null if the item cannot be loaded
    • configurationError

      public void configurationError(String itemIndex, String parameter, String reason)
      Display an error message in the console when an interface item cannot be loaded.
      Specified by:
      configurationError in interface IInterfaceItem
      Parameters:
      itemIndex - the index of the item in the file
      parameter - the parameter that caused the error
      reason - the reason of the error