public abstract class AntiRandom
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
LOG |
Constructor and Description |
---|
AntiRandom(java.lang.String name) |
Modifier and Type | Method and 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 the
RandomHandler to set whether or not this random is currently active. |
AntiRandom |
setEnabled(boolean enabled) |
abstract boolean |
shouldExecute() |
@Inject public void init()
public abstract void execute()
public abstract boolean shouldExecute()
protected abstract void doOnRender(RenderEvent event)
public java.lang.String getName()
public final void setActive(boolean active)
RandomHandler
to set whether or not this random is currently active.active
- public final boolean isActive()
RandomHandler
.public final AntiRandom setEnabled(boolean enabled)
public final boolean isEnabled()