java.lang.Object
net.botwithus.rs3.game.Item
- All Implemented Interfaces:
Identifiable,Onymous
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable ItemTypeintgetId()@Nullable InventoryTypeGets theInventoryTypeof the inventory that this item is in.@Nullable StringgetName()intgetSlot()intintgetVarbitValue(int varbitId) Retrieves the varbit value of an item in an inventory.inthashCode()toString()
-
Constructor Details
-
Item
public Item(int inventoryId, int slot, int id, int stackSize)
-
-
Method Details
-
getName
-
getId
public int getId()- Specified by:
getIdin interfaceIdentifiable
-
getStackSize
public int getStackSize() -
getSlot
public int getSlot() -
getConfigType
-
getInventoryType
Gets theInventoryTypeof the inventory that this item is in.- Returns:
- The
InventoryTypeof the inventory that this item is in.
-
equals
-
toString
-
hashCode
public int hashCode() -
getVarbitValue
public int getVarbitValue(int varbitId) Retrieves the varbit value of an item in an inventory.- Parameters:
varbitId- The varbit ID.- Returns:
- The varbit value of the item in the inventory, or -1 if the method handle could not be found.
-