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>
-
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
-
condition
-
-
Constructor Details
-
ForgetCompletedPointOfInterestTask
public ForgetCompletedPointOfInterestTask(PointOfInterestType poiType, MemoryModuleType<GlobalPos> memoryModule)
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<LivingEntity>
-
run
- Overrides:
run
in classTask<LivingEntity>
-
isBedOccupiedByOthers
-
hasCompletedPointOfInterest
-