public class BreakDoorGoal extends DoorInteractGoal
Goal.Control| Modifier and Type | Field and Description |
|---|---|
protected int |
breakProgress |
private Predicate<Difficulty> |
difficultySufficientPredicate |
protected int |
maxProgress |
protected int |
prevBreakProgress |
doorPos, doorValid, mob| Constructor and Description |
|---|
BreakDoorGoal(MobEntity mob,
int maxProgress,
Predicate<Difficulty> difficultySufficientPredicate) |
BreakDoorGoal(MobEntity mob,
Predicate<Difficulty> difficultySufficientPredicate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart() |
protected int |
getMaxProgress() |
private boolean |
isDifficultySufficient(Difficulty difficulty) |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
isDoorOpen, setDoorOpencanStop, getControls, setControls, toStringprivate final Predicate<Difficulty> difficultySufficientPredicate
protected int breakProgress
protected int prevBreakProgress
protected int maxProgress
public BreakDoorGoal(MobEntity mob, Predicate<Difficulty> difficultySufficientPredicate)
public BreakDoorGoal(MobEntity mob, int maxProgress, Predicate<Difficulty> difficultySufficientPredicate)
protected int getMaxProgress()
public boolean canStart()
canStart in class DoorInteractGoalpublic void start()
start in class DoorInteractGoalpublic boolean shouldContinue()
shouldContinue in class DoorInteractGoalpublic void tick()
tick in class DoorInteractGoalprivate boolean isDifficultySufficient(Difficulty difficulty)