Class FindInteractionTargetTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.FindInteractionTargetTask
- Mappings:
Namespace Name official bfr
intermediary net/minecraft/class_4109
named net/minecraft/entity/ai/brain/task/FindInteractionTargetTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityType<?>
private final int
private final Predicate<LivingEntity>
private final Predicate<LivingEntity>
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionFindInteractionTargetTask
(EntityType<?> entityType, int maxDistance) FindInteractionTargetTask
(EntityType<?> entityType, int maxDistance, Predicate<LivingEntity> shouldRunPredicate, Predicate<LivingEntity> predicate) -
Method Summary
Modifier and TypeMethodDescriptionprivate LivingTargetCache
getVisibleMobs
(LivingEntity entity) void
run
(ServerWorld world, LivingEntity entity, long time) boolean
shouldRun
(ServerWorld world, LivingEntity entity) private boolean
test
(LivingEntity entity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
entityType
- Mappings:
Namespace Name Mixin selector official a
Lbfr;a:Lbbr;
intermediary field_18363
Lnet/minecraft/class_4109;field_18363:Lnet/minecraft/class_1299;
named entityType
Lnet/minecraft/entity/ai/brain/task/FindInteractionTargetTask;entityType:Lnet/minecraft/entity/EntityType;
-
maxSquaredDistance
private final int maxSquaredDistance- Mappings:
Namespace Name Mixin selector official d
Lbfr;d:I
intermediary field_18364
Lnet/minecraft/class_4109;field_18364:I
named maxSquaredDistance
Lnet/minecraft/entity/ai/brain/task/FindInteractionTargetTask;maxSquaredDistance:I
-
predicate
- Mappings:
Namespace Name Mixin selector official e
Lbfr;e:Ljava/util/function/Predicate;
intermediary field_18365
Lnet/minecraft/class_4109;field_18365:Ljava/util/function/Predicate;
named predicate
Lnet/minecraft/entity/ai/brain/task/FindInteractionTargetTask;predicate:Ljava/util/function/Predicate;
-
shouldRunPredicate
- Mappings:
Namespace Name Mixin selector official f
Lbfr;f:Ljava/util/function/Predicate;
intermediary field_18366
Lnet/minecraft/class_4109;field_18366:Ljava/util/function/Predicate;
named shouldRunPredicate
Lnet/minecraft/entity/ai/brain/task/FindInteractionTargetTask;shouldRunPredicate:Ljava/util/function/Predicate;
-
-
Constructor Details
-
FindInteractionTargetTask
public FindInteractionTargetTask(EntityType<?> entityType, int maxDistance, Predicate<LivingEntity> shouldRunPredicate, Predicate<LivingEntity> predicate) - Mappings:
Namespace Name Mixin selector official <init>
Lbfr;<init>(Lbbr;ILjava/util/function/Predicate;Ljava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_4109;<init>(Lnet/minecraft/class_1299;ILjava/util/function/Predicate;Ljava/util/function/Predicate;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FindInteractionTargetTask;<init>(Lnet/minecraft/entity/EntityType;ILjava/util/function/Predicate;Ljava/util/function/Predicate;)V
-
FindInteractionTargetTask
- Mappings:
Namespace Name Mixin selector official <init>
Lbfr;<init>(Lbbr;I)V
intermediary <init>
Lnet/minecraft/class_4109;<init>(Lnet/minecraft/class_1299;I)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FindInteractionTargetTask;<init>(Lnet/minecraft/entity/EntityType;I)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
-
test
- Mappings:
Namespace Name Mixin selector official a
Lbfr;a(Lbcc;)Z
intermediary method_18962
Lnet/minecraft/class_4109;method_18962(Lnet/minecraft/class_1309;)Z
named test
Lnet/minecraft/entity/ai/brain/task/FindInteractionTargetTask;test(Lnet/minecraft/entity/LivingEntity;)Z
-
getVisibleMobs
- Mappings:
Namespace Name Mixin selector official b
Lbfr;b(Lbcc;)Lbkw;
intermediary method_18959
Lnet/minecraft/class_4109;method_18959(Lnet/minecraft/class_1309;)Lnet/minecraft/class_6670;
named getVisibleMobs
Lnet/minecraft/entity/ai/brain/task/FindInteractionTargetTask;getVisibleMobs(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/ai/brain/LivingTargetCache;
-