Class WidgetChild


  • public class WidgetChild
    extends java.lang.Object
    This class represents a child widget within a larger widget. It provides methods to retrieve information about the widget, interact with it, and perform various actions.
    • Constructor Detail

      • WidgetChild

        public WidgetChild​(RSWidget widget,
                           int parentId)
    • Method Detail

      • exists

        public boolean exists()
      • setNestedID

        public WidgetChild setNestedID​(int nestedID)
      • getWidget

        public RSWidget getWidget()
      • getParent

        public RSWidget getParent()
      • getActions

        public java.lang.String[] getActions()
      • getActionType

        public int getActionType()
      • getChild

        public WidgetChild getChild​(int index)
      • getChildren

        public java.util.List<WidgetChild> getChildren()
      • getChildItems

        public java.util.List<Item> getChildItems()
      • getItem

        public Item getItem()
      • getItems

        public java.util.List<Item> getItems()
      • getItemID

        public int getItemID()
      • getItemStack

        public int getItemStack()
      • getParentID

        public int getParentID()
      • getRealParentID

        public int getRealParentID()
      • getID

        public int getID()
      • getRealID

        public int getRealID()
      • getIndex

        public int getIndex()
      • getScrollMax

        public int getScrollMax()
      • getScrollX

        public int getScrollX()
      • getScrollY

        public int getScrollY()
      • getHeight

        public int getHeight()
      • getWidth

        public int getWidth()
      • getRelativeX

        public int getRelativeX()
      • getRelativeY

        public int getRelativeY()
      • getRectangle

        public java.awt.Rectangle getRectangle()
        Gets the bounds of the widget, null if the widget doesn't exist.
        Returns:
        the bounds, or null if the widget doesn't exist
      • getRandomPoint

        public java.awt.Point getRandomPoint()
      • getX

        public int getX()
      • getY

        public int getY()
      • getLoopCycle

        public int getLoopCycle()
      • getRealName

        public java.lang.String getRealName()
      • getColoredRealName

        public java.lang.String getColoredRealName()
      • getName

        public java.lang.String getName()
      • getColoredName

        public java.lang.String getColoredName()
      • getSelectedAction

        public java.lang.String getSelectedAction()
      • getSpellName

        public java.lang.String getSpellName()
      • getSpriteId

        public int getSpriteId()
      • getText

        public java.lang.String getText()
      • containsText

        public boolean containsText​(java.lang.String text)
      • getTextColor

        public int getTextColor()
      • getTooltip

        public java.lang.String getTooltip()
      • getType

        public int getType()
      • isHidden

        public boolean isHidden()
      • isVisible

        public boolean isVisible()
      • getModelType

        public int getModelType()
      • getModelId

        public int getModelId()
      • hasAction

        public boolean hasAction​(java.lang.String action)
      • containsAction

        public boolean containsAction​(java.lang.String action)
      • interact

        public boolean interact()
      • interact

        public boolean interact​(java.lang.String action)
      • interact

        public boolean interact​(int actionIndex)
      • interact

        public boolean interact​(int actionIndex,
                                java.awt.Point clickPoint)
      • interact

        public boolean interact​(java.lang.String action,
                                int id,
                                net.eternalclient.api.data.MenuOpcode opcode)
      • interact

        public boolean interact​(java.util.function.Predicate<java.lang.String> predicate)
      • interact

        public boolean interact​(java.util.function.Predicate<java.lang.String> predicate,
                                java.awt.Point clickPoint)
      • interact

        public boolean interact​(java.lang.String... actions)
      • interact

        public boolean interact​(net.eternalclient.api.data.MenuAction menuAction)
      • interact

        public boolean interact​(net.eternalclient.api.data.MenuAction menuAction,
                                java.awt.Point clickPoint)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object