public class WalkToNearestVisibleWantedItemTask<E extends LivingEntity> extends Task<E>
Task.Status
Modifier and Type | Field and Description |
---|---|
private float |
field_23131 |
private int |
radius |
private Predicate<E> |
startCondition |
requiredMemoryStates
Constructor and Description |
---|
WalkToNearestVisibleWantedItemTask(float float2,
boolean bool,
int int2) |
WalkToNearestVisibleWantedItemTask(Predicate<E> startCondition,
float float2,
boolean requiresWalkTarget,
int int2) |
Modifier and Type | Method and Description |
---|---|
private ItemEntity |
getNearestVisibleWantedItem(E entity) |
protected void |
run(ServerWorld world,
E entity,
long time) |
protected boolean |
shouldRun(ServerWorld world,
E entity) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
private final Predicate<E extends LivingEntity> startCondition
private final int radius
private final float field_23131
public WalkToNearestVisibleWantedItemTask(float float2, boolean bool, int int2)
protected boolean shouldRun(ServerWorld world, E entity)
shouldRun
in class Task<E extends LivingEntity>
protected void run(ServerWorld world, E entity, long time)
run
in class Task<E extends LivingEntity>
private ItemEntity getNearestVisibleWantedItem(E entity)