public class MoveThroughVillageGoal extends Goal
| Modifier and Type | Field and Description |
|---|---|
private java.util.function.BooleanSupplier |
booleanSupplier |
private java.util.List<BlockPos> |
doorList |
protected CreatureEntity |
entity |
private BlockPos |
field_220735_d |
private boolean |
isNocturnal |
private int |
maxDistance |
private double |
movementSpeed |
private Path |
path |
| Constructor and Description |
|---|
MoveThroughVillageGoal(CreatureEntity p_i50324_1_,
double speedIn,
boolean nocturnal,
int maxDistanceIn,
java.util.function.BooleanSupplier booleanSupplierIn) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
func_220733_a(BlockPos p_220733_1_) |
void |
resetTask() |
private void |
resizeDoorList() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexFlags, isPreemptible, setMutexFlags, tick, toStringprotected final CreatureEntity entity
private final double movementSpeed
private Path path
private BlockPos field_220735_d
private final boolean isNocturnal
private final java.util.List<BlockPos> doorList
private final int maxDistance
private final java.util.function.BooleanSupplier booleanSupplier
public MoveThroughVillageGoal(CreatureEntity p_i50324_1_, double speedIn, boolean nocturnal, int maxDistanceIn, java.util.function.BooleanSupplier booleanSupplierIn)
public boolean shouldExecute()
shouldExecute in class Goalpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class Goalpublic void startExecuting()
startExecuting in class Goalprivate boolean func_220733_a(BlockPos p_220733_1_)
private void resizeDoorList()