Package com.epicbot.api.shared.random
Class AntiRandom
java.lang.Object
com.epicbot.api.shared.random.AntiRandom
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoOnRender(RenderEvent event) abstract voidexecute()getName()getType()voidinit()final booleanisActive()Get whether or not this random is currently active.final booleanfinal voidsetActive(boolean active) Called by theRandomHandlerto set whether or not this random is currently active.final AntiRandomsetEnabled(boolean enabled) abstract boolean
-
Field Details
-
LOG
protected final org.slf4j.Logger LOG
-
-
Constructor Details
-
Method Details
-
init
@Inject public void init() -
execute
public abstract void execute() -
shouldExecute
public abstract boolean shouldExecute() -
getType
-
getName
-
setActive
public final void setActive(boolean active) Called by theRandomHandlerto 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
-
isEnabled
public final boolean isEnabled()
-