java.lang.Object
net.botwithus.rs3.game.Item
- All Implemented Interfaces:
Identifiable
,Onymous
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable ItemType
int
getId()
@Nullable InventoryType
Gets theInventoryType
of the inventory that this item is in.@Nullable String
getName()
int
getSlot()
int
int
getVarbitValue
(int varbitId) Retrieves the varbit value of an item in an inventory.int
hashCode()
toString()
-
Constructor Details
-
Item
public Item(int inventoryId, int slot, int id, int stackSize)
-
-
Method Details
-
getName
-
getId
public int getId()- Specified by:
getId
in interfaceIdentifiable
-
getStackSize
public int getStackSize() -
getSlot
public int getSlot() -
getConfigType
-
getInventoryType
Gets theInventoryType
of the inventory that this item is in.- Returns:
- The
InventoryType
of 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.
-