Class KSObject

    • Constructor Detail

      • KSObject

        public KSObject()
    • Method Detail

      • getId

        public int getId()
      • getName

        public java.lang.String getName()
      • getActions

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

        public java.lang.String toString()
        Provides a string representation of the object
        Overrides:
        toString in class java.lang.Object
        Returns:
        a formatted string describing the object.
      • interact

        public boolean interact​(int action)
      • interact

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

        public java.lang.String getAction​(java.lang.String... actions)
        Checks if the item has a specific action.
        Parameters:
        action - the name of the action to check (e.g., "Use").
        Returns:
        String if the action is available, null otherwise.
      • getClickPoint

        public net.runelite.api.Point getClickPoint()
      • interact

        public void interact​(net.runelite.api.MenuAction menuAction)
      • getLocalLocation

        public net.runelite.api.coords.LocalPoint getLocalLocation()
        Specified by:
        getLocalLocation in interface Locatable