Class MeleeAttackTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.MeleeAttackTask
- Mappings:
Namespace Name official bew
intermediary net/minecraft/class_4816
named net/minecraft/entity/ai/brain/task/MeleeAttackTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate LivingEntity
getAttackTarget
(MobEntity entity) private boolean
isHoldingUsableRangedWeapon
(MobEntity entity) protected void
run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
interval
private final int interval- Mappings:
Namespace Name Mixin selector official a
Lbew;a:I
intermediary field_22308
Lnet/minecraft/class_4816;field_22308:I
named interval
Lnet/minecraft/entity/ai/brain/task/MeleeAttackTask;interval:I
-
-
Constructor Details
-
MeleeAttackTask
public MeleeAttackTask(int interval) - Mappings:
Namespace Name Mixin selector official <init>
Lbew;<init>(I)V
intermediary <init>
Lnet/minecraft/class_4816;<init>(I)V
named <init>
Lnet/minecraft/entity/ai/brain/task/MeleeAttackTask;<init>(I)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbew;a(Lagg;Lbce;)Z
intermediary method_24588
Lnet/minecraft/class_4816;method_24588(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/MeleeAttackTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
-
isHoldingUsableRangedWeapon
- Mappings:
Namespace Name Mixin selector official a
Lbew;a(Lbce;)Z
intermediary method_25942
Lnet/minecraft/class_4816;method_25942(Lnet/minecraft/class_1308;)Z
named isHoldingUsableRangedWeapon
Lnet/minecraft/entity/ai/brain/task/MeleeAttackTask;isHoldingUsableRangedWeapon(Lnet/minecraft/entity/mob/MobEntity;)Z
-
run
- Overrides:
run
in classTask<MobEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbew;a(Lagg;Lbce;J)V
intermediary method_24590
Lnet/minecraft/class_4816;method_24590(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
named run
Lnet/minecraft/entity/ai/brain/task/MeleeAttackTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
-
getAttackTarget
- Mappings:
Namespace Name Mixin selector official b
Lbew;b(Lbce;)Lbcc;
intermediary method_25944
Lnet/minecraft/class_4816;method_25944(Lnet/minecraft/class_1308;)Lnet/minecraft/class_1309;
named getAttackTarget
Lnet/minecraft/entity/ai/brain/task/MeleeAttackTask;getAttackTarget(Lnet/minecraft/entity/mob/MobEntity;)Lnet/minecraft/entity/LivingEntity;
-