Class ExpirePOITask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<LivingEntity>
-
- net.minecraft.entity.ai.brain.task.ExpirePOITask
-
public class ExpirePOITask 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 MemoryModuleType<GlobalPos>
memoryType
private java.util.function.Predicate<PointOfInterestType>
poiPredicate
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description ExpirePOITask(PointOfInterestType p_i50338_1_, MemoryModuleType<GlobalPos> p_i50338_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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 Detail
-
memoryType
private final MemoryModuleType<GlobalPos> memoryType
-
poiPredicate
private final java.util.function.Predicate<PointOfInterestType> poiPredicate
-
-
Constructor Detail
-
ExpirePOITask
public ExpirePOITask(PointOfInterestType p_i50338_1_, MemoryModuleType<GlobalPos> p_i50338_2_)
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, LivingEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<LivingEntity>
-
start
protected void start(ServerWorld p_212831_1_, LivingEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<LivingEntity>
-
bedIsOccupied
private boolean bedIsOccupied(ServerWorld p_223019_1_, BlockPos p_223019_2_, LivingEntity p_223019_3_)
-
poiDoesntExist
private boolean poiDoesntExist(ServerWorld p_223020_1_, BlockPos p_223020_2_)
-
-