Class ForgetCompletedPointOfInterestTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.ForgetCompletedPointOfInterestTask
public class ForgetCompletedPointOfInterestTask extends Task<LivingEntity>
- Mappings:
Namespace Name official avj
intermediary net/minecraft/class_4128
named net/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private Predicate<PointOfInterestType>
condition
private MemoryModuleType<GlobalPos>
memoryModule
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description ForgetCompletedPointOfInterestTask(PointOfInterestType poiType, MemoryModuleType<GlobalPos> memoryModule)
-
Method Summary
Modifier and Type Method Description private boolean
hasCompletedPointOfInterest(ServerWorld world, BlockPos pos)
private boolean
isBedOccupiedByOthers(ServerWorld world, BlockPos pos, 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
-
memoryModule
- Mappings:
Namespace Name Mixin selector official b
Lavj;b:Lazf;
intermediary field_18390
Lnet/minecraft/class_4128;field_18390:Lnet/minecraft/class_4140;
named memoryModule
Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;memoryModule:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
condition
- Mappings:
Namespace Name Mixin selector official c
Lavj;c:Ljava/util/function/Predicate;
intermediary field_18391
Lnet/minecraft/class_4128;field_18391:Ljava/util/function/Predicate;
named condition
Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;condition:Ljava/util/function/Predicate;
-
-
Constructor Details
-
ForgetCompletedPointOfInterestTask
public ForgetCompletedPointOfInterestTask(PointOfInterestType poiType, MemoryModuleType<GlobalPos> memoryModule)- Mappings:
Namespace Name Mixin selector official <init>
Lavj;<init>(Lbbb;Lazf;)V
intermediary <init>
Lnet/minecraft/class_4128;<init>(Lnet/minecraft/class_4158;Lnet/minecraft/class_4140;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;<init>(Lnet/minecraft/world/poi/PointOfInterestType;Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lass;a(Laav;Lari;)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
Lass;a(Laav;Lari;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
-
isBedOccupiedByOthers
- Mappings:
Namespace Name Mixin selector official a
Lavj;a(Laav;Lfx;Lari;)Z
intermediary method_20500
Lnet/minecraft/class_4128;method_20500(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)Z
named isBedOccupiedByOthers
Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;isBedOccupiedByOthers(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/LivingEntity;)Z
-
hasCompletedPointOfInterest
- Mappings:
Namespace Name Mixin selector official a
Lavj;a(Laav;Lfx;)Z
intermediary method_20499
Lnet/minecraft/class_4128;method_20499(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
named hasCompletedPointOfInterest
Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;hasCompletedPointOfInterest(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
-