Class ForgetCompletedPointOfInterestTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.ForgetCompletedPointOfInterestTask
- Mappings:
Namespace Name official bfuintermediary net/minecraft/class_4128named 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
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final MemoryModuleType<GlobalPos>private final Predicate<RegistryEntry<PointOfInterestType>>Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates -
Constructor Summary
ConstructorsConstructorDescriptionForgetCompletedPointOfInterestTask(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> memoryModule) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanhasCompletedPointOfInterest(ServerWorld world, BlockPos pos) private booleanisBedOccupiedByOthers(ServerWorld world, BlockPos pos, LivingEntity entity) protected voidrun(ServerWorld world, LivingEntity entity, long time) protected booleanshouldRun(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
-
MAX_RANGE
private static final int MAX_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official aLbfu;a:Iintermediary field_30185Lnet/minecraft/class_4128;field_30185:Inamed MAX_RANGELnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;MAX_RANGE:I
-
memoryModule
- Mappings:
Namespace Name Mixin selector official dLbfu;d:Lbjx;intermediary field_18390Lnet/minecraft/class_4128;field_18390:Lnet/minecraft/class_4140;named memoryModuleLnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;memoryModule:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
poiTypePredicate
- Mappings:
Namespace Name Mixin selector official eLbfu;e:Ljava/util/function/Predicate;intermediary field_18391Lnet/minecraft/class_4128;field_18391:Ljava/util/function/Predicate;named poiTypePredicateLnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;poiTypePredicate:Ljava/util/function/Predicate;
-
-
Constructor Details
-
ForgetCompletedPointOfInterestTask
public ForgetCompletedPointOfInterestTask(Predicate<RegistryEntry<PointOfInterestType>> poiTypePredicate, MemoryModuleType<GlobalPos> memoryModule) - Mappings:
Namespace Name Mixin selector official <init>Lbfu;<init>(Ljava/util/function/Predicate;Lbjx;)Vintermediary <init>Lnet/minecraft/class_4128;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_4140;)Vnamed <init>Lnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;<init>(Ljava/util/function/Predicate;Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRunin classTask<LivingEntity>- Mappings:
Namespace Name Mixin selector official aLbcr;a(Lafo;Lbbf;)Zintermediary method_18919Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Znamed shouldRunLnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
run
- Overrides:
runin classTask<LivingEntity>- Mappings:
Namespace Name Mixin selector official aLbcr;a(Lafo;Lbbf;J)Vintermediary method_18920Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Vnamed runLnet/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 aLbfu;a(Lafo;Lgt;Lbbf;)Zintermediary method_20500Lnet/minecraft/class_4128;method_20500(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_1309;)Znamed isBedOccupiedByOthersLnet/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 aLbfu;a(Lafo;Lgt;)Zintermediary method_20499Lnet/minecraft/class_4128;method_20499(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Znamed hasCompletedPointOfInterestLnet/minecraft/entity/ai/brain/task/ForgetCompletedPointOfInterestTask;hasCompletedPointOfInterest(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
-