public class DefeatTargetTask extends Task<LivingEntity>
Task.Status| Modifier and Type | Field and Description |
|---|---|
private int |
duration |
requiredMemoryStates| Constructor and Description |
|---|
DefeatTargetTask(int duration) |
| Modifier and Type | Method and Description |
|---|---|
private LivingEntity |
getAttackTarget(LivingEntity entity) |
protected void |
run(ServerWorld world,
LivingEntity entity,
long time) |
protected boolean |
shouldRun(ServerWorld world,
LivingEntity entity) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStartingprotected boolean shouldRun(ServerWorld world, LivingEntity entity)
shouldRun in class Task<LivingEntity>protected void run(ServerWorld world, LivingEntity entity, long time)
run in class Task<LivingEntity>private LivingEntity getAttackTarget(LivingEntity entity)