public class MoveThroughVillageGoal extends Goal
Modifier and Type | Field and Description |
---|---|
protected CreatureEntity |
entity |
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 |
---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
getMutexFlags, isPreemptible, setMutexFlags, tick, toString
protected final CreatureEntity entity
public MoveThroughVillageGoal(CreatureEntity p_i50324_1_, double speedIn, boolean nocturnal, int maxDistanceIn, java.util.function.BooleanSupplier booleanSupplierIn)
public boolean shouldExecute()
shouldExecute
in class Goal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class Goal
public void startExecuting()
startExecuting
in class Goal