Class ShootTargetTask<E extends MobEntity & ICrossbowUser,T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.ShootTargetTask<E,T>
public class ShootTargetTask<E extends MobEntity & ICrossbowUser,T extends LivingEntity>
extends Task<E>
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerWorld p_212834_1_, E p_212834_2_, long p_212834_3_) protected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, E p_212832_2_) private void
crossbowAttack
(E p_233888_1_, LivingEntity p_233888_2_) private static LivingEntity
getAttackTarget
(LivingEntity p_233887_0_) private void
lookAtTarget
(MobEntity p_233889_1_, LivingEntity p_233889_2_) protected void
stop
(ServerWorld p_212835_1_, E p_212835_2_, long p_212835_3_) protected void
tick
(ServerWorld p_212833_1_, E p_212833_2_, long p_212833_3_)
-
Field Details
-
attackDelay
private int attackDelay -
crossbowState
-
-
Constructor Details
-
ShootTargetTask
public ShootTargetTask()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<E extends MobEntity & ICrossbowUser>
-
canStillUse
- Overrides:
canStillUse
in classTask<E extends MobEntity & ICrossbowUser>
-
tick
- Overrides:
tick
in classTask<E extends MobEntity & ICrossbowUser>
-
stop
- Overrides:
stop
in classTask<E extends MobEntity & ICrossbowUser>
-
crossbowAttack
-
lookAtTarget
-
getAttackTarget
-