static class GuardianEntity.AttackGoal extends Goal
Modifier and Type | Field and Description |
---|---|
private GuardianEntity |
guardian |
private boolean |
isElder |
private int |
tickCounter |
Constructor and Description |
---|
AttackGoal(GuardianEntity guardian) |
Modifier and Type | Method and Description |
---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, toString
private final GuardianEntity guardian
private int tickCounter
private final boolean isElder
public AttackGoal(GuardianEntity guardian)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal