Class MeleeAttackTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.MeleeAttackTask
- Mappings:
Namespace Name official awk
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
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
Lawk;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>
Lawk;<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
Lawk;a(Labr;Latv;)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
Lawk;a(Latv;)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
Lawk;a(Labr;Latv;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
Lawk;b(Latv;)Latt;
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;
-