Class FindEntityTask<E extends LivingEntity,T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.FindEntityTask<E,T>
- Mappings:
Namespace Name official bem
intermediary net/minecraft/class_4106
named net/minecraft/entity/ai/brain/task/FindEntityTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final EntityType<? extends T>
private final int
private final float
private final MemoryModuleType<T>
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionFindEntityTask
(EntityType<? extends T> entityType, int maxDistance, Predicate<E> shouldRunPredicate, Predicate<T> predicate, MemoryModuleType<T> targetModule, float speed, int completionRange) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
anyVisibleTo
(E entity) static <T extends LivingEntity>
FindEntityTask<LivingEntity,T> create
(EntityType<? extends T> entityType, int maxDistance, Predicate<T> condition, MemoryModuleType<T> moduleType, float speed, int completionRange) static <T extends LivingEntity>
FindEntityTask<LivingEntity,T> create
(EntityType<? extends T> entityType, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange) protected void
run
(ServerWorld world, E entity, long time) protected boolean
shouldRun
(ServerWorld world, E entity) private boolean
shouldTarget
(E self, LivingEntity target) private boolean
testPredicate
(LivingEntity entity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
completionRange
private final int completionRange- Mappings:
Namespace Name Mixin selector official a
Lbem;a:I
intermediary field_18355
Lnet/minecraft/class_4106;field_18355:I
named completionRange
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;completionRange:I
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official d
Lbem;d:F
intermediary field_18356
Lnet/minecraft/class_4106;field_18356:F
named speed
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;speed:F
-
entityType
- Mappings:
Namespace Name Mixin selector official e
Lbem;e:Lbbr;
intermediary field_18357
Lnet/minecraft/class_4106;field_18357:Lnet/minecraft/class_1299;
named entityType
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;entityType:Lnet/minecraft/entity/EntityType;
-
maxSquaredDistance
private final int maxSquaredDistance- Mappings:
Namespace Name Mixin selector official f
Lbem;f:I
intermediary field_18358
Lnet/minecraft/class_4106;field_18358:I
named maxSquaredDistance
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;maxSquaredDistance:I
-
predicate
- Mappings:
Namespace Name Mixin selector official g
Lbem;g:Ljava/util/function/Predicate;
intermediary field_18359
Lnet/minecraft/class_4106;field_18359:Ljava/util/function/Predicate;
named predicate
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;predicate:Ljava/util/function/Predicate;
-
shouldRunPredicate
- Mappings:
Namespace Name Mixin selector official h
Lbem;h:Ljava/util/function/Predicate;
intermediary field_18360
Lnet/minecraft/class_4106;field_18360:Ljava/util/function/Predicate;
named shouldRunPredicate
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;shouldRunPredicate:Ljava/util/function/Predicate;
-
targetModule
- Mappings:
Namespace Name Mixin selector official i
Lbem;i:Lbku;
intermediary field_18361
Lnet/minecraft/class_4106;field_18361:Lnet/minecraft/class_4140;
named targetModule
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;targetModule:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
-
Constructor Details
-
FindEntityTask
public FindEntityTask(EntityType<? extends T> entityType, int maxDistance, Predicate<E> shouldRunPredicate, Predicate<T> predicate, MemoryModuleType<T> targetModule, float speed, int completionRange) - Mappings:
Namespace Name Mixin selector official <init>
Lbem;<init>(Lbbr;ILjava/util/function/Predicate;Ljava/util/function/Predicate;Lbku;FI)V
intermediary <init>
Lnet/minecraft/class_4106;<init>(Lnet/minecraft/class_1299;ILjava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/class_4140;FI)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;<init>(Lnet/minecraft/entity/EntityType;ILjava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;FI)V
-
-
Method Details
-
create
public static <T extends LivingEntity> FindEntityTask<LivingEntity,T> create(EntityType<? extends T> entityType, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange) - Mappings:
Namespace Name Mixin selector official a
Lbem;a(Lbbr;ILbku;FI)Lbem;
intermediary method_18941
Lnet/minecraft/class_4106;method_18941(Lnet/minecraft/class_1299;ILnet/minecraft/class_4140;FI)Lnet/minecraft/class_4106;
named create
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;create(Lnet/minecraft/entity/EntityType;ILnet/minecraft/entity/ai/brain/MemoryModuleType;FI)Lnet/minecraft/entity/ai/brain/task/FindEntityTask;
-
create
public static <T extends LivingEntity> FindEntityTask<LivingEntity,T> create(EntityType<? extends T> entityType, int maxDistance, Predicate<T> condition, MemoryModuleType<T> moduleType, float speed, int completionRange) - Mappings:
Namespace Name Mixin selector official a
Lbem;a(Lbbr;ILjava/util/function/Predicate;Lbku;FI)Lbem;
intermediary method_35071
Lnet/minecraft/class_4106;method_35071(Lnet/minecraft/class_1299;ILjava/util/function/Predicate;Lnet/minecraft/class_4140;FI)Lnet/minecraft/class_4106;
named create
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;create(Lnet/minecraft/entity/EntityType;ILjava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;FI)Lnet/minecraft/entity/ai/brain/task/FindEntityTask;
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends 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
-
anyVisibleTo
- Mappings:
Namespace Name Mixin selector official a
Lbem;a(Lbcc;)Z
intermediary method_24582
Lnet/minecraft/class_4106;method_24582(Lnet/minecraft/class_1309;)Z
named anyVisibleTo
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;anyVisibleTo(Lnet/minecraft/entity/LivingEntity;)Z
-
testPredicate
- Mappings:
Namespace Name Mixin selector official b
Lbem;b(Lbcc;)Z
intermediary method_24583
Lnet/minecraft/class_4106;method_24583(Lnet/minecraft/class_1309;)Z
named testPredicate
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;testPredicate(Lnet/minecraft/entity/LivingEntity;)Z
-
run
- Overrides:
run
in classTask<E extends 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
-
shouldTarget
- Mappings:
Namespace Name Mixin selector official a
Lbem;a(Lbcc;Lbcc;)Z
intermediary method_38963
Lnet/minecraft/class_4106;method_38963(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
named shouldTarget
Lnet/minecraft/entity/ai/brain/task/FindEntityTask;shouldTarget(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-