Class ItemComposite


  • public class ItemComposite
    extends java.lang.Object
    Represents a composite of an item.
    • Method Detail

      • cacheItemComposite

        public static void cacheItemComposite​(RSItemComposition itemComposition)
        Caches the item composite for the given RSItemComposition.
        Parameters:
        itemComposition - the RSItemComposition object to cache
      • getItem

        public static ItemComposite getItem​(int id)
        Retrieves the ItemComposite for the specified id. If the id is negative, returns null. If the ItemComposite is cached, it is retrieved from the cache. If the ItemComposite is a member-only item in a members world, the cached ItemComposite is removed from the cache and a new one is fetched. If the ItemComposite is not cached, it is fetched using getUnCachedItem().
        Parameters:
        id - the id of the item
        Returns:
        the ItemComposite for the specified id, or null if the id is negative
      • getID

        public int getID()
      • getNotedItemID

        public int getNotedItemID()
      • getUnnotedItemID

        public int getUnnotedItemID()
      • isNoted

        public boolean isNoted()
      • getActions

        public java.lang.String[] getActions()
      • getGroundItemActions

        public java.lang.String[] getGroundItemActions()
      • getName

        public java.lang.String getName()
      • coloredName

        public java.lang.String coloredName()
      • isStackable

        public boolean isStackable()
      • isMembers

        public boolean isMembers()
      • isTradable

        public boolean isTradable()
      • isBankable

        public boolean isBankable()
      • getValue

        public int getValue()
      • getModelID

        public int getModelID()
      • getPlaceholderID

        public int getPlaceholderID()
      • getPlaceholderTemplateID

        public int getPlaceholderTemplateID()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object