class WanderingTraderEntity.MoveToGoal extends Goal
Modifier and Type | Field and Description |
---|---|
(package private) double |
maxDistance |
(package private) double |
speed |
(package private) WanderingTraderEntity |
traderEntity |
Constructor and Description |
---|
MoveToGoal(WanderingTraderEntity traderEntityIn,
double distanceIn,
double speedIn) |
Modifier and Type | Method and Description |
---|---|
private boolean |
isWithinDistance(BlockPos pos,
double distance) |
void |
resetTask() |
boolean |
shouldExecute() |
void |
tick() |
getMutexFlags, isPreemptible, setMutexFlags, shouldContinueExecuting, startExecuting, toString
final WanderingTraderEntity traderEntity
final double maxDistance
final double speed
MoveToGoal(WanderingTraderEntity traderEntityIn, double distanceIn, double speedIn)
public boolean shouldExecute()
shouldExecute
in class Goal
private boolean isWithinDistance(BlockPos pos, double distance)