Package com.epicbot.api.shared.random
Class AntiRandom
- java.lang.Object
-
- com.epicbot.api.shared.random.AntiRandom
-
public abstract class AntiRandom extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.logging.log4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description AntiRandom(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doOnRender(RenderEvent event)
abstract void
execute()
java.lang.String
getName()
void
init()
boolean
isActive()
Get whether or not this random is currently active.boolean
isEnabled()
void
setActive(boolean active)
Called by theRandomHandler
to set whether or not this random is currently active.AntiRandom
setEnabled(boolean enabled)
abstract boolean
shouldExecute()
-
-
-
Method Detail
-
init
@Inject public void init()
-
execute
public abstract void execute()
-
shouldExecute
public abstract boolean shouldExecute()
-
doOnRender
protected abstract void doOnRender(RenderEvent event)
-
getName
public java.lang.String getName()
-
setActive
public final void setActive(boolean active)
Called by theRandomHandler
to set whether or not this random is currently active.- Parameters:
active
-
-
isActive
public final boolean isActive()
Get whether or not this random is currently active. Random is activated by theRandomHandler
.- Returns:
- boolean
-
setEnabled
public final AntiRandom setEnabled(boolean enabled)
-
isEnabled
public final boolean isEnabled()
-
-