public class MoveThroughVillageGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private int |
distance |
private BooleanSupplier |
doorPassingThroughGetter |
protected PathAwareEntity |
mob |
private boolean |
requiresNighttime |
private double |
speed |
private BlockPos |
target |
private Path |
targetPath |
private List<BlockPos> |
visitedTargets |
Constructor and Description |
---|
MoveThroughVillageGoal(PathAwareEntity pathAwareEntity,
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 PathAwareEntity 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(PathAwareEntity pathAwareEntity, double speed, boolean requiresNighttime, int distance, BooleanSupplier doorPassingThroughGetter)
public boolean shouldContinue()
shouldContinue
in class Goal
private boolean shouldVisit(BlockPos pos)
private void forgetOldTarget()