Class AttackStrafingTask<E extends MobEntity>
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<E>
-
- net.minecraft.entity.ai.brain.task.AttackStrafingTask<E>
-
-
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 float
strafeSpeed
private int
tooCloseDistance
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description AttackStrafingTask(int p_i231509_1_, float p_i231509_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkExtraStartConditions(ServerWorld p_212832_1_, E p_212832_2_)
private LivingEntity
getTarget(E p_233857_1_)
private boolean
isTargetTooClose(E p_233856_1_)
private boolean
isTargetVisible(E p_233855_1_)
protected void
start(ServerWorld p_212831_1_, E p_212831_2_, long p_212831_3_)
-
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
-
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, E p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<E extends MobEntity>
-
start
protected void start(ServerWorld p_212831_1_, E p_212831_2_, long p_212831_3_)
-
isTargetVisible
private boolean isTargetVisible(E p_233855_1_)
-
isTargetTooClose
private boolean isTargetTooClose(E p_233856_1_)
-
getTarget
private LivingEntity getTarget(E p_233857_1_)
-
-