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 bfgintermediary net/minecraft/class_4810named net/minecraft/entity/ai/brain/task/CrossbowAttackTask
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate CrossbowAttackTask.CrossbowStateFields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static LivingEntitygetAttackTarget(LivingEntity entity) protected booleanmethod_24570(ServerWorld serverWorld, E e) protected booleanmethod_24571(ServerWorld serverWorld, E e, long long2) protected voidmethod_24573(ServerWorld serverWorld, E e, long long2) protected voidmethod_24574(ServerWorld serverWorld, E e, long long2) private voidsetLookTarget(MobEntity entity, LivingEntity target) private voidtickState(E entity, LivingEntity target) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, run, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
RUN_TIME
private static final int RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official aLbfg;a:Iintermediary field_30114Lnet/minecraft/class_4810;field_30114:Inamed RUN_TIMELnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;RUN_TIME:I
-
chargingCooldown
private int chargingCooldown- Mappings:
Namespace Name Mixin selector official dLbfg;d:Iintermediary field_22293Lnet/minecraft/class_4810;field_22293:Inamed chargingCooldownLnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;chargingCooldown:I
-
state
- Mappings:
Namespace Name Mixin selector official eLbfg;e:Lbfg$a;intermediary field_22294Lnet/minecraft/class_4810;field_22294:Lnet/minecraft/class_4810$class_4811;named stateLnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;state:Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask$CrossbowState;
-
-
Constructor Details
-
CrossbowAttackTask
public CrossbowAttackTask()
-
-
Method Details
-
method_24570
- Mappings:
Namespace Name Mixin selector official aLbfg;a(Lahb;Lbdp;)Zintermediary method_24570Lnet/minecraft/class_4810;method_24570(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Znamed method_24570Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;method_24570(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
-
method_24571
- Mappings:
Namespace Name Mixin selector official aLbfg;a(Lahb;Lbdp;J)Zintermediary method_24571Lnet/minecraft/class_4810;method_24571(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Znamed method_24571Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;method_24571(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
-
method_24573
- Mappings:
Namespace Name Mixin selector official bLbfg;b(Lahb;Lbdp;J)Vintermediary method_24573Lnet/minecraft/class_4810;method_24573(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Vnamed method_24573Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;method_24573(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
method_24574
- Mappings:
Namespace Name Mixin selector official cLbfg;c(Lahb;Lbdp;J)Vintermediary method_24574Lnet/minecraft/class_4810;method_24574(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Vnamed method_24574Lnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;method_24574(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
tickState
- Mappings:
Namespace Name Mixin selector official aLbfg;a(Lbdp;Lbdn;)Vintermediary method_24569Lnet/minecraft/class_4810;method_24569(Lnet/minecraft/class_1308;Lnet/minecraft/class_1309;)Vnamed tickStateLnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;tickState(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/LivingEntity;)V
-
setLookTarget
- Mappings:
Namespace Name Mixin selector official bLbfg;b(Lbdp;Lbdn;)Vintermediary method_24572Lnet/minecraft/class_4810;method_24572(Lnet/minecraft/class_1308;Lnet/minecraft/class_1309;)Vnamed setLookTargetLnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;setLookTarget(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/entity/LivingEntity;)V
-
getAttackTarget
- Mappings:
Namespace Name Mixin selector official aLbfg;a(Lbdn;)Lbdn;intermediary method_24568Lnet/minecraft/class_4810;method_24568(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1309;named getAttackTargetLnet/minecraft/entity/ai/brain/task/CrossbowAttackTask;getAttackTarget(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/LivingEntity;
-