Class AttackTargetTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<MobEntity>
-
- net.minecraft.entity.ai.brain.task.AttackTargetTask
-
-
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 intcooldownBetweenAttacks-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description AttackTargetTask(int p_i231523_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckExtraStartConditions(ServerWorld p_212832_1_, MobEntity p_212832_2_)private LivingEntitygetAttackTarget(MobEntity p_233923_1_)private booleanisHoldingUsableProjectileWeapon(MobEntity p_233921_1_)protected voidstart(ServerWorld p_212831_1_, MobEntity 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_, MobEntity p_212832_2_)
- Overrides:
checkExtraStartConditionsin classTask<MobEntity>
-
isHoldingUsableProjectileWeapon
private boolean isHoldingUsableProjectileWeapon(MobEntity p_233921_1_)
-
start
protected void start(ServerWorld p_212831_1_, MobEntity p_212831_2_, long p_212831_3_)
-
getAttackTarget
private LivingEntity getAttackTarget(MobEntity p_233923_1_)
-
-