Class MethodProvider

  • Direct Known Subclasses:
    AbstractScript, TaskNode

    @Deprecated
    public class MethodProvider
    extends java.lang.Object
    Deprecated.
    use Sleepable for sleep methods
    • Constructor Detail

      • MethodProvider

        public MethodProvider()
        Deprecated.
    • Method Detail

      • sleep

        public void sleep​(long ms)
        Deprecated.
      • sleep

        public void sleep​(long min,
                          long max)
        Deprecated.
      • sleepUntil

        public boolean sleepUntil​(Condition terminate,
                                  Condition reset,
                                  long timeout,
                                  long polling)
        Deprecated.
      • sleepUntil

        public boolean sleepUntil​(Condition terminate,
                                  long timeout,
                                  long polling)
        Deprecated.
      • sleepWhile

        public boolean sleepWhile​(Condition condition,
                                  Condition reset,
                                  long timeout,
                                  long polling)
        Deprecated.
      • sleepWhile

        public boolean sleepWhile​(Condition condition,
                                  long timeout,
                                  long polling)
        Deprecated.
      • getRandomManager

        public RandomManager getRandomManager()
        Deprecated.
      • getScriptManager

        public ScriptManager getScriptManager()
        Deprecated.
      • print

        public void print​(java.lang.Object msg)
        Deprecated.
        Prints to console with Logger.LogType.SCRIPT
        Parameters:
        msg - message to print
      • log

        public void log​(java.lang.Object object)
        Deprecated.
        Prints to console with Logger.LogType.SCRIPT
        Parameters:
        object - object to log
      • info

        public void info​(java.lang.Object msg)
        Deprecated.
        Logs to console with Logger.LogType.INFO
        Parameters:
        msg - message to log
      • debug

        public void debug​(java.lang.Object msg)
        Deprecated.
        Logs to console with Logger.LogType.DEBUG Only logs if debug flag is enabled
        Parameters:
        msg - message to log
      • error

        public void error​(java.lang.Object msg)
        Deprecated.
        Logs to console with Logger.LogType.ERROR
        Parameters:
        msg - message to log
      • isUserVIP

        public boolean isUserVIP()
        Deprecated.
        Checks whether the DreamBot member logged into the client is a VIP member or above (this includes but may not be limited to: Staff, Ex-Staff, Sponsor, Scripters, and Lead Designer)
        Returns:
        true if VIP or above
      • isUserSponsor

        public boolean isUserSponsor()
        Deprecated.
        Checks whether the DreamBot member logged into the client is a Sponsor or above (This includes but may not be limited to: Staff, Ex-Staff, Scripters, and Lead Designer)
        Returns:
        true if Sponsor or above