public class MoveThroughVillageGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private int |
distance |
private BooleanSupplier |
doorPassingThroughGetter |
protected MobEntityWithAi |
mob |
private boolean |
requiresNighttime |
private double |
speed |
private BlockPos |
target |
private Path |
targetPath |
private List<BlockPos> |
visitedTargets |
Constructor and Description |
---|
MoveThroughVillageGoal(MobEntityWithAi mob,
double speed,
boolean requiresNighttime,
int distance,
BooleanSupplier doorPassingThroughGetter) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
private void |
forgetOldTarget() |
boolean |
shouldContinue() |
private boolean |
shouldVisit(BlockPos pos) |
void |
start() |
void |
stop() |
canStop, getControls, setControls, tick, toString
protected final MobEntityWithAi mob
private final double speed
private Path targetPath
private BlockPos target
private final boolean requiresNighttime
private final int distance
private final BooleanSupplier doorPassingThroughGetter
public MoveThroughVillageGoal(MobEntityWithAi mob, double speed, boolean requiresNighttime, int distance, BooleanSupplier doorPassingThroughGetter)
public boolean shouldContinue()
shouldContinue
in class Goal
private boolean shouldVisit(BlockPos pos)
private void forgetOldTarget()