Class MenuRow
- java.lang.Object
-
- org.dreambot.api.wrappers.widgets.MenuRow
-
public class MenuRow extends java.lang.ObjectCreated with IntelliJ IDEA.- Since:
- : 9/19/2015 Time : 11:42 AM
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFORMAT_RS_ARROW
-
Constructor Summary
Constructors Constructor Description MenuRow(int index, java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode, boolean shift)Deprecated.MenuRow(int index, java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode, int targetRegionIndex, boolean shift)MenuRow(java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode)Deprecated.MenuRow(java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode, int targetRegionIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MenuRowclone()booleancompareAction(java.lang.String action)Compare action a inputted action, and determines if the action associated with this menu row matches the given action.booleancompareEntity(Entity e)booleancompareObject(java.lang.String object)Compares a inputted object, and determines if the object associated with this menu row matches the given object.booleanequals(java.lang.Object o)java.lang.StringgetAction()Gets action associated with this menu row.intgetId()Gets ID of this menu row.intgetID()Deprecated.seegetId()intgetIndex()intgetItemIdCode()java.lang.StringgetObject()Gets object reference associated with this menu row.intgetOpCode()Get opcode of this menu row.java.lang.StringgetRawAction()java.lang.StringgetRawObject()intgetTargetRegionIndex()intgetXCode()Get x code of this menu row.intgetYCode()Get y code of this menu row.inthashCode()booleanisShift()voidsetAction(java.lang.String action)voidsetId(int id)voidsetIndex(int index)voidsetItemIdCode(int itemIdCode)voidsetObject(java.lang.String object)voidsetOpCode(int opCode)voidsetShift(boolean shift)voidsetTargetRegionIndex(int targetRegionIndex)voidsetXCode(int xCode)voidsetYCode(int yCode)java.lang.StringtoString()
-
-
-
Field Detail
-
FORMAT_RS_ARROW
public static final java.lang.String FORMAT_RS_ARROW
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MenuRow
@Deprecated public MenuRow(java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode)Deprecated.Instantiates a new Menu row wrapper used to represent rows of aMenuinstance.- Parameters:
action- the actionobject- the objectopCode- the op codeid- the idxCode- the x codeyCode- the y codeitemIdCode- the item code for inventory interactions
-
MenuRow
public MenuRow(java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode, int targetRegionIndex)
-
MenuRow
@Deprecated public MenuRow(int index, java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode, boolean shift)Deprecated.Instantiates a new Menu row wrapper used to represent rows of aMenuinstance.- Parameters:
index- index of the menu row (0 is first in menu)action- the actionobject- the objectopCode- the op codeid- the idxCode- the x codeyCode- the y codeitemIdCode- the item code for inventory interactionsshift- Whether this menu row item is shift invoked (generally false)
-
MenuRow
public MenuRow(int index, java.lang.String action, java.lang.String object, int opCode, int id, int xCode, int yCode, int itemIdCode, int targetRegionIndex, boolean shift)
-
-
Method Detail
-
getId
public int getId()
Gets ID of this menu row.- Returns:
- the ID of this menu row
-
getID
@Deprecated public int getID()
Deprecated.seegetId()
-
getXCode
public int getXCode()
Get x code of this menu row.- Returns:
- the x code of this menu row
-
getYCode
public int getYCode()
Get y code of this menu row.- Returns:
- the y code of this menu row
-
compareAction
public boolean compareAction(java.lang.String action)
Compare action a inputted action, and determines if the action associated with this menu row matches the given action.- Parameters:
action- the action to compare- Returns:
- true if the two actions match, otherwise false
-
compareObject
public boolean compareObject(java.lang.String object)
Compares a inputted object, and determines if the object associated with this menu row matches the given object.- Parameters:
object- the object to compare- Returns:
- true if the two objects match, otherwise false
-
compareEntity
public boolean compareEntity(Entity e)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
clone
public MenuRow clone()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
setIndex
public void setIndex(int index)
-
getIndex
public int getIndex()
-
setAction
public void setAction(java.lang.String action)
-
getAction
public java.lang.String getAction()
Gets action associated with this menu row.- Returns:
- the action
-
getRawAction
public java.lang.String getRawAction()
-
setObject
public void setObject(java.lang.String object)
-
getObject
public java.lang.String getObject()
Gets object reference associated with this menu row.- Returns:
- the object
-
getRawObject
public java.lang.String getRawObject()
-
setId
public void setId(int id)
-
setXCode
public void setXCode(int xCode)
-
setYCode
public void setYCode(int yCode)
-
setOpCode
public void setOpCode(int opCode)
-
getOpCode
public int getOpCode()
Get opcode of this menu row.- Returns:
- the int
-
setItemIdCode
public void setItemIdCode(int itemIdCode)
-
getItemIdCode
public int getItemIdCode()
-
setTargetRegionIndex
public void setTargetRegionIndex(int targetRegionIndex)
-
getTargetRegionIndex
public int getTargetRegionIndex()
-
setShift
public void setShift(boolean shift)
-
isShift
public boolean isShift()
-
-