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, setDoorOpen
canStop, getControls, setControls, toString
private 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 DoorInteractGoal
public void start()
start
in class DoorInteractGoal
public boolean shouldContinue()
shouldContinue
in class DoorInteractGoal
public void tick()
tick
in class DoorInteractGoal
private boolean isDifficultySufficient(Difficulty difficulty)