Class CrossbowAttackTask<E extends MobEntity & CrossbowUser,T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.CrossbowAttackTask<E,T>
public class CrossbowAttackTask<E extends MobEntity & CrossbowUser,T extends LivingEntity> extends Task<E>
- Mappings:
Namespace Name official asy
intermediary net/minecraft/class_4810
named net/minecraft/entity/ai/brain/task/CrossbowAttackTask
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
CrossbowAttackTask.CrossbowState
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
chargingCooldown
private CrossbowAttackTask.CrossbowState
state
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description CrossbowAttackTask()
-
Method Summary
Modifier and Type Method Description protected 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.Task
getStatus, isTimeLimitExceeded, run, stop, tick, toString, tryStarting
-
Field Details
-
chargingCooldown
private int chargingCooldown- Mappings:
Namespace Name Mixin selector official b
Lasy;b:I
intermediary field_22293
Lnet/minecraft/class_4810;field_22293:I
named chargingCooldown
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;chargingCooldown:I
-
state
- Mappings:
Namespace Name Mixin selector official c
Lasy;c:Lasy$a;
intermediary field_22294
Lnet/minecraft/class_4810;field_22294:Lnet/minecraft/class_4810$class_4811;
named state
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;state:Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask$CrossbowState;
-
-
Constructor Details
-
CrossbowAttackTask
public CrossbowAttackTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends MobEntity & CrossbowUser>
- Mappings:
Namespace Name Mixin selector official a
Lasy;a(Laav;Larj;)Z
intermediary method_24570
Lnet/minecraft/class_4810;method_24570(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classTask<E extends MobEntity & CrossbowUser>
- Mappings:
Namespace Name Mixin selector official a
Lasy;a(Laav;Larj;J)Z
intermediary method_24571
Lnet/minecraft/class_4810;method_24571(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
-
keepRunning
- Overrides:
keepRunning
in classTask<E extends MobEntity & CrossbowUser>
- Mappings:
Namespace Name Mixin selector official b
Lasy;b(Laav;Larj;J)V
intermediary method_24573
Lnet/minecraft/class_4810;method_24573(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
finishRunning
- Overrides:
finishRunning
in classTask<E extends MobEntity & CrossbowUser>
- Mappings:
Namespace Name Mixin selector official c
Lasy;c(Laav;Larj;J)V
intermediary method_24574
Lnet/minecraft/class_4810;method_24574(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
tickState
- Mappings:
Namespace Name Mixin selector official a
Lasy;a(Larj;Lari;)V
intermediary method_24569
Lnet/minecraft/class_4810;method_24569(Lnet/minecraft/class_1308;Lnet/minecraft/class_1309;)V
named tickState
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;tickState(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/LivingEntity;)V
-
setLookTarget
- Mappings:
Namespace Name Mixin selector official b
Lasy;b(Larj;Lari;)V
intermediary method_24572
Lnet/minecraft/class_4810;method_24572(Lnet/minecraft/class_1308;Lnet/minecraft/class_1309;)V
named setLookTarget
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;setLookTarget(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/LivingEntity;)V
-
getAttackTarget
- Mappings:
Namespace Name Mixin selector official a
Lasy;a(Lari;)Lari;
intermediary method_24568
Lnet/minecraft/class_4810;method_24568(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1309;
named getAttackTarget
Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;getAttackTarget(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/LivingEntity;
-