Class Action


  • public class Action
    extends java.lang.Object
    Utility class for performing various actions within the game.
    • Constructor Summary

      Constructors 
      Constructor Description
      Action()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean doAction​(net.eternalclient.api.data.MenuAction menuAction)
      Executes the specified menu action.
      static boolean doAction​(net.eternalclient.api.data.MenuAction menuAction, Interactable interactable)
      Executes the specified menu action on the given interactable, notifying all registered client action listeners.
      static boolean doAction​(net.eternalclient.api.data.MenuAction menuAction, Item item)
      Executes the specified menu action on the given item, and notifies all registered listeners of the action.
      static boolean doAction​(net.eternalclient.api.data.MenuAction menuAction, WidgetChild widgetChild)
      Performs a menu action on a widget child, taking into account the location of the item within the bank menu.
      static void forceDoAction​(net.eternalclient.api.data.MenuAction menuAction)
      Executes a given menu action forcefully.
      static boolean isConsumeClick()  
      static boolean isPacketInvokeFallback()  
      static void setConsumeClick​(boolean consumeClick)  
      static void setPacketInvokeFallback​(boolean packetInvokeFallback)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Action

        public Action()
    • Method Detail

      • doAction

        public static boolean doAction​(net.eternalclient.api.data.MenuAction menuAction,
                                       Interactable interactable)
        Executes the specified menu action on the given interactable, notifying all registered client action listeners. Returns true if the action was successfully executed.
        Parameters:
        menuAction - the menu action to perform
        interactable - the interactable object to perform the action on
        Returns:
        true if the action was executed successfully, false otherwise
      • doAction

        public static boolean doAction​(net.eternalclient.api.data.MenuAction menuAction,
                                       WidgetChild widgetChild)
        Performs a menu action on a widget child, taking into account the location of the item within the bank menu.
        Parameters:
        menuAction - the menu action to be performed
        widgetChild - the widget child on which the action is performed
        Returns:
        true if the action is successfully performed, false otherwise
      • doAction

        public static boolean doAction​(net.eternalclient.api.data.MenuAction menuAction,
                                       Item item)
        Executes the specified menu action on the given item, and notifies all registered listeners of the action.
        Parameters:
        menuAction - the menu action to be performed
        item - the item on which the menu action is to be executed
        Returns:
        true if the action was successfully performed, false otherwise
      • forceDoAction

        public static void forceDoAction​(net.eternalclient.api.data.MenuAction menuAction)
        Executes a given menu action forcefully.
        Parameters:
        menuAction - the menu action to be executed forcefully.
      • doAction

        public static boolean doAction​(net.eternalclient.api.data.MenuAction menuAction)
        Executes the specified menu action.
        Parameters:
        menuAction - the menu action to be executed
        Returns:
        true if the action was successfully executed, false otherwise
      • isConsumeClick

        public static boolean isConsumeClick()
      • setConsumeClick

        public static void setConsumeClick​(boolean consumeClick)
      • isPacketInvokeFallback

        public static boolean isPacketInvokeFallback()
      • setPacketInvokeFallback

        public static void setPacketInvokeFallback​(boolean packetInvokeFallback)