Interface ItemType

All Superinterfaces:
ConfigType, Onymous
All Known Implementing Classes:
ItemTypeImpl

public interface ItemType extends ConfigType, Onymous
  • Method Details

    • getNotedItemId

      int getNotedItemId()
    • getGroundOptions

      @NotNull @NotNull List<String> getGroundOptions()
    • getBackpackOptions

      @NotNull @NotNull List<String> getBackpackOptions()
    • getCost

      long getCost()
    • getStackability

      @NotNull @NotNull ItemType.Stackability getStackability()
    • getEquipmentSlotId

      int getEquipmentSlotId()
    • getGrandExchangeBuyLimit

      int getGrandExchangeBuyLimit()
      Gets the maximum amount of this item that can be bought on the Grand Exchange in a 4 hour session.
      Returns:
      a positive int or 0 if it has no limit or can't be traded (not sure which)
    • getCategory

      int getCategory()
    • isMembersOnly

      boolean isMembersOnly()
    • getParamIds

      @NotNull @NotNull List<Integer> getParamIds()
    • hasParam

      boolean hasParam(int paramId)
      Whether or not this config includes overrides for the default value of a given ParamType.
      Parameters:
      paramId - the id of the ParamType to see if this config overrides.
      Returns:
      true if this config overrides the default value of the ParamType with the provided id.
    • getIntParam

      int getIntParam(int paramId)
      Gets the value of the parameter with the provided id if available, otherwise -1
      Parameters:
      paramId - The id of the ParamType that this ConfigType values for.
      Returns:
      The parameter's value if available, otherwise -1.
    • getStringParam

      @Nullable @Nullable String getStringParam(int paramId)
      Gets the value of the parameter with the provided id if available. This can be null if you set the default value to null.
      Parameters:
      paramId - The id of the ParamType that this ConfigType has values for.
      Returns:
      The parameter's value if available, otherwise null
    • isNote

      boolean isNote()