Class DefeatTargetTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.DefeatTargetTask
- Mappings:
Namespace Name official bgc
intermediary net/minecraft/class_4825
named net/minecraft/entity/ai/brain/task/DefeatTargetTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final BiPredicate<LivingEntity,
LivingEntity> Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorsConstructorDescriptionDefeatTargetTask
(int duration, BiPredicate<LivingEntity, LivingEntity> predicate) -
Method Summary
Modifier and TypeMethodDescriptionprivate LivingEntity
getAttackTarget
(LivingEntity entity) protected void
run
(ServerWorld world, LivingEntity entity, long time) protected boolean
shouldRun
(ServerWorld world, LivingEntity entity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
duration
private final int duration- Mappings:
Namespace Name Mixin selector official a
Lbgc;a:I
intermediary field_22327
Lnet/minecraft/class_4825;field_22327:I
named duration
Lnet/minecraft/entity/ai/brain/task/DefeatTargetTask;duration:I
-
predicate
- Mappings:
Namespace Name Mixin selector official d
Lbgc;d:Ljava/util/function/BiPredicate;
intermediary field_25157
Lnet/minecraft/class_4825;field_25157:Ljava/util/function/BiPredicate;
named predicate
Lnet/minecraft/entity/ai/brain/task/DefeatTargetTask;predicate:Ljava/util/function/BiPredicate;
-
-
Constructor Details
-
DefeatTargetTask
- Mappings:
Namespace Name Mixin selector official <init>
Lbgc;<init>(ILjava/util/function/BiPredicate;)V
intermediary <init>
Lnet/minecraft/class_4825;<init>(ILjava/util/function/BiPredicate;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/DefeatTargetTask;<init>(ILjava/util/function/BiPredicate;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbdo;a(Lagg;Lbcc;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
run
- Overrides:
run
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbdo;a(Lagg;Lbcc;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
getAttackTarget
- Mappings:
Namespace Name Mixin selector official a
Lbgc;a(Lbcc;)Lbcc;
intermediary method_24616
Lnet/minecraft/class_4825;method_24616(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1309;
named getAttackTarget
Lnet/minecraft/entity/ai/brain/task/DefeatTargetTask;getAttackTarget(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/LivingEntity;
-