static class RaiderEntity.AttackHomeGoal extends Goal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private int |
distance |
private boolean |
finished |
private BlockPos |
home |
private List<BlockPos> |
lastHomes |
private RaiderEntity |
raider |
private double |
speed |
Constructor and Description |
---|
AttackHomeGoal(RaiderEntity raider,
double speed,
int distance) |
Modifier and Type | Method and Description |
---|---|
private boolean |
canLootHome(BlockPos pos) |
boolean |
canStart() |
private boolean |
isRaiding() |
private void |
purgeMemory() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
private boolean |
tryFindHome() |
canStop, getControls, setControls, toString
private final RaiderEntity raider
private final double speed
private BlockPos home
private final int distance
private boolean finished
public AttackHomeGoal(RaiderEntity raider, double speed, int distance)
private boolean isRaiding()
private boolean tryFindHome()
public boolean shouldContinue()
shouldContinue
in class Goal
private boolean canLootHome(BlockPos pos)
private void purgeMemory()