Package org.dreambot.api.methods
Class MethodProvider
- java.lang.Object
 - 
- org.dreambot.api.methods.MethodProvider
 
 
- 
- Direct Known Subclasses:
 AbstractScript,TaskNode
@Deprecated public class MethodProvider extends java.lang.ObjectDeprecated.useSleepablefor sleep methods 
- 
- 
Constructor Summary
Constructors Constructor Description MethodProvider()Deprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddebug(java.lang.Object msg)Deprecated.Logs to console withLogger.LogType.DEBUGOnly logs if debug flag is enabledvoiderror(java.lang.Object msg)Deprecated.Logs to console withLogger.LogType.ERRORRandomManagergetRandomManager()Deprecated.ScriptManagergetScriptManager()Deprecated.voidinfo(java.lang.Object msg)Deprecated.Logs to console withLogger.LogType.INFObooleanisUserSponsor()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)booleanisUserVIP()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)voidlog(java.lang.Object object)Deprecated.Prints to console withLogger.LogType.SCRIPTvoidprint(java.lang.Object msg)Deprecated.Prints to console withLogger.LogType.SCRIPTvoidsleep(long ms)Deprecated.voidsleep(long min, long max)Deprecated.booleansleepUntil(Condition terminate, long timeout, long polling)Deprecated.booleansleepUntil(Condition terminate, Condition reset, long timeout, long polling)Deprecated.booleansleepWhile(Condition condition, long timeout, long polling)Deprecated.booleansleepWhile(Condition condition, Condition reset, long timeout, long polling)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 withLogger.LogType.SCRIPT- Parameters:
 msg- message to print
 
- 
log
public void log(java.lang.Object object)
Deprecated.Prints to console withLogger.LogType.SCRIPT- Parameters:
 object- object to log
 
- 
info
public void info(java.lang.Object msg)
Deprecated.Logs to console withLogger.LogType.INFO- Parameters:
 msg- message to log
 
- 
debug
public void debug(java.lang.Object msg)
Deprecated.Logs to console withLogger.LogType.DEBUGOnly logs if debug flag is enabled- Parameters:
 msg- message to log
 
- 
error
public void error(java.lang.Object msg)
Deprecated.Logs to console withLogger.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
 
 
 - 
 
 -