Class MeleeAttackTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.MeleeAttackTask
public class MeleeAttackTask extends Task<MobEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private int
interval
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description MeleeAttackTask(int interval)
-
Method Summary
Modifier and Type Method Description private boolean
method_25942(MobEntity mobEntity)
private LivingEntity
method_25944(MobEntity mobEntity)
protected void
run(ServerWorld serverWorld, MobEntity mobEntity, long long2)
protected boolean
shouldRun(ServerWorld serverWorld, MobEntity mobEntity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting