public class DefeatTargetTask extends Task<LivingEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
private int |
duration |
private BiPredicate<LivingEntity,LivingEntity> |
field_25157 |
requiredMemoryStates
Constructor and Description |
---|
DefeatTargetTask(int duration,
BiPredicate<LivingEntity,LivingEntity> biPredicate) |
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, tryStarting
private final int duration
private final BiPredicate<LivingEntity,LivingEntity> field_25157
public DefeatTargetTask(int duration, BiPredicate<LivingEntity,LivingEntity> biPredicate)
protected 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)