Class RSItem
- java.lang.Object
-
- com.osrsbots.orb.api.interactables.types.RSItem
-
- All Implemented Interfaces:
java.io.Serializable
public class RSItem extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRSItem.CompositionSerializerstatic classRSItem.Type
-
Constructor Summary
Constructors Constructor Description RSItem(RSItem.Type type, int index, int quantity, int id)RSItem(RSItem.Type type, net.runelite.api.widgets.Widget widget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoAction(java.lang.String action)booleandoUse()booleandoUseWith(RSItem rsi)booleandrop()@Nullable java.lang.String[]getActions()java.awt.PointgetClickablePoint()java.awt.RectanglegetClickbox()intgetExchangePrice()intgetHaPrice()intgetId()java.lang.String[]getInventoryActions()intgetInventoryModel()intgetLinkedNoteId()java.lang.StringgetMembersName()java.lang.StringgetName()intgetNote()intgetPlaceholderId()intgetPlaceholderTemplateId()intgetShiftClickActionIndex()intgetStorePrice()@Nullable RSWidgetgetWidget()voidhighlight()booleanhover()booleaninteract()booleaninteract(java.lang.String action)booleanisMembers()booleanisStackable()booleanisTradeable()java.lang.StringtoString()booleanuse()booleanuseWith(RSActor rsa)booleanuseWith(RSItem rsi)booleanuseWith(RSLoot rsl)booleanuseWith(RSObject rso)
-
-
-
Constructor Detail
-
RSItem
public RSItem(RSItem.Type type, int index, int quantity, int id)
-
RSItem
public RSItem(RSItem.Type type, net.runelite.api.widgets.Widget widget)
-
-
Method Detail
-
getClickbox
@Nullable public java.awt.Rectangle getClickbox()
-
getWidget
@Nullable public @Nullable RSWidget getWidget()
-
getClickablePoint
@Nullable public java.awt.Point getClickablePoint()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
highlight
public void highlight()
-
doAction
public boolean doAction(@Nonnull java.lang.String action)
-
interact
public boolean interact()
-
interact
public boolean interact(@Nonnull java.lang.String action)
-
drop
public boolean drop()
-
use
public boolean use()
-
doUse
public boolean doUse()
-
doUseWith
public boolean doUseWith(@Nonnull RSItem rsi)
-
hover
public boolean hover()
-
useWith
public boolean useWith(@Nonnull RSItem rsi)
-
useWith
public boolean useWith(@Nonnull RSLoot rsl)
-
useWith
public boolean useWith(@Nonnull RSObject rso)
-
useWith
public boolean useWith(@Nonnull RSActor rsa)
-
getActions
@Nullable public @Nullable java.lang.String[] getActions()
-
getName
@Nonnull public java.lang.String getName()
-
getMembersName
@Nonnull public java.lang.String getMembersName()
-
getId
public int getId()
-
getNote
public int getNote()
-
getLinkedNoteId
public int getLinkedNoteId()
-
getPlaceholderId
public int getPlaceholderId()
-
getPlaceholderTemplateId
public int getPlaceholderTemplateId()
-
getStorePrice
public int getStorePrice()
-
getHaPrice
public int getHaPrice()
-
getExchangePrice
public int getExchangePrice()
-
isMembers
public boolean isMembers()
-
isStackable
public boolean isStackable()
-
isTradeable
public boolean isTradeable()
-
getInventoryActions
public java.lang.String[] getInventoryActions()
-
getShiftClickActionIndex
public int getShiftClickActionIndex()
-
getInventoryModel
public int getInventoryModel()
-
-