Class ItemComposite
- java.lang.Object
-
- net.eternalclient.api.wrappers.item.ItemComposite
-
public class ItemComposite extends java.lang.Object
Represents a composite of an item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ItemComposite.State
-
Constructor Summary
Constructors Constructor Description ItemComposite(RSItemComposition composition)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
cacheItemComposite(RSItemComposition itemComposition)
Caches the item composite for the given RSItemComposition.java.lang.String
coloredName()
boolean
equals(java.lang.Object obj)
java.lang.String[]
getActions()
RSItemComposition
getComposition()
java.lang.String[]
getGroundItemActions()
int
getID()
static ItemComposite
getItem(int id)
Retrieves the ItemComposite for the specified id.int
getModelID()
java.lang.String
getName()
int
getNotedItemID()
int
getPlaceholderID()
int
getPlaceholderTemplateID()
int
getUnnotedItemID()
int
getValue()
boolean
isBankable()
boolean
isMembers()
boolean
isNoted()
boolean
isStackable()
boolean
isTradable()
-
-
-
Constructor Detail
-
ItemComposite
public ItemComposite(RSItemComposition composition)
-
-
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
-
getComposition
public RSItemComposition getComposition()
-
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 classjava.lang.Object
-
-