Class ExpirePOITask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.ExpirePOITask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MemoryModuleType<GlobalPos>
private final Predicate<PointOfInterestType>
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionExpirePOITask
(PointOfInterestType p_i50338_1_, MemoryModuleType<GlobalPos> p_i50338_2_) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
bedIsOccupied
(ServerWorld p_223019_1_, BlockPos p_223019_2_, LivingEntity p_223019_3_) protected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, LivingEntity p_212832_2_) private boolean
poiDoesntExist
(ServerWorld p_223020_1_, BlockPos p_223020_2_) protected void
start
(ServerWorld p_212831_1_, LivingEntity p_212831_2_, long p_212831_3_) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
memoryType
-
poiPredicate
-
-
Constructor Details
-
ExpirePOITask
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<LivingEntity>
-
start
- Overrides:
start
in classTask<LivingEntity>
-
bedIsOccupied
private boolean bedIsOccupied(ServerWorld p_223019_1_, BlockPos p_223019_2_, LivingEntity p_223019_3_) -
poiDoesntExist
-