Task.Status
Modifier and Type | Field and Description |
---|---|
private int |
distance |
private float |
forwardMovement |
requiredMemoryStates
Constructor and Description |
---|
AttackTask(int distance,
float forwardMovement) |
Modifier and Type | Method and Description |
---|---|
private LivingEntity |
getAttackTarget(E entity) |
private boolean |
isAttackTargetVisible(E entity) |
private boolean |
isNearAttackTarget(E entity) |
protected void |
run(ServerWorld serverWorld,
E e,
long long2) |
protected boolean |
shouldRun(ServerWorld serverWorld,
E e) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
private final int distance
private final float forwardMovement
protected boolean shouldRun(ServerWorld serverWorld, E e)
protected void run(ServerWorld serverWorld, E e, long long2)
private boolean isAttackTargetVisible(E entity)
private boolean isNearAttackTarget(E entity)
private LivingEntity getAttackTarget(E entity)