Class CrossbowAttackTask<E extends MobEntity & CrossbowUser,T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<E>
net.minecraft.entity.ai.brain.task.CrossbowAttackTask<E,T>
- All Implemented Interfaces:
Task<E>
public class CrossbowAttackTask<E extends MobEntity & CrossbowUser,T extends LivingEntity>
extends MultiTickTask<E>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/CrossbowAttackTask
intermediary net/minecraft/class_4810
official bvr
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static final int
private CrossbowAttackTask.CrossbowState
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRunning
(ServerWorld serverWorld, E e, long long2) private static LivingEntity
getAttackTarget
(LivingEntity entity) protected void
keepRunning
(ServerWorld serverWorld, E e, long long2) private void
setLookTarget
(MobEntity entity, LivingEntity target) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, E e, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, E e) private void
tickState
(E entity, LivingEntity target) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, run, stop, tick, tryStarting
-
Field Details
-
RUN_TIME
private static final int RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named RUN_TIME
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;RUN_TIME:I
intermediary field_30114
Lnet/minecraft/class_4810;field_30114:I
official c
Lbvr;c:I
-
chargingCooldown
private int chargingCooldown- Mappings:
Namespace Name Mixin selector named chargingCooldown
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;chargingCooldown:I
intermediary field_22293
Lnet/minecraft/class_4810;field_22293:I
official d
Lbvr;d:I
-
state
- Mappings:
Namespace Name Mixin selector named state
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;state:Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask$CrossbowState;
intermediary field_22294
Lnet/minecraft/class_4810;field_22294:Lnet/minecraft/class_4810$class_4811;
official e
Lbvr;e:Lbvr$a;
-
-
Constructor Details
-
CrossbowAttackTask
public CrossbowAttackTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<E extends MobEntity & CrossbowUser>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
intermediary method_24570
Lnet/minecraft/class_4810;method_24570(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
official a
Lbvr;a(Larf;Lbts;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classMultiTickTask<E extends MobEntity & CrossbowUser>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
intermediary method_24571
Lnet/minecraft/class_4810;method_24571(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Z
official a
Lbvr;a(Larf;Lbts;J)Z
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<E extends MobEntity & CrossbowUser>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
intermediary method_24573
Lnet/minecraft/class_4810;method_24573(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
official b
Lbvr;b(Larf;Lbts;J)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<E extends MobEntity & CrossbowUser>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
intermediary method_24574
Lnet/minecraft/class_4810;method_24574(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
official c
Lbvr;c(Larf;Lbts;J)V
-
tickState
- Mappings:
Namespace Name Mixin selector named tickState
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;tickState(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/LivingEntity;)V
intermediary method_24569
Lnet/minecraft/class_4810;method_24569(Lnet/minecraft/class_1308;Lnet/minecraft/class_1309;)V
official a
Lbvr;a(Lbts;Lbtq;)V
-
setLookTarget
- Mappings:
Namespace Name Mixin selector named setLookTarget
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;setLookTarget(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/LivingEntity;)V
intermediary method_24572
Lnet/minecraft/class_4810;method_24572(Lnet/minecraft/class_1308;Lnet/minecraft/class_1309;)V
official b
Lbvr;b(Lbts;Lbtq;)V
-
getAttackTarget
- Mappings:
Namespace Name Mixin selector named getAttackTarget
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;getAttackTarget(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/LivingEntity;
intermediary method_24568
Lnet/minecraft/class_4810;method_24568(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1309;
official b
Lbvr;b(Lbtq;)Lbtq;
-