Class GatherPOITask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<CreatureEntity>
net.minecraft.entity.ai.brain.task.GatherPOITask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.Long2ObjectMap<GatherPOITask.RetryMarker>
private final MemoryModuleType<GlobalPos>
private long
private final boolean
private final PointOfInterestType
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionGatherPOITask
(PointOfInterestType p_i241907_1_, MemoryModuleType<GlobalPos> p_i241907_2_, boolean p_i241907_3_, Optional<Byte> p_i241907_4_) GatherPOITask
(PointOfInterestType p_i241906_1_, MemoryModuleType<GlobalPos> p_i241906_2_, MemoryModuleType<GlobalPos> p_i241906_3_, boolean p_i241906_4_, Optional<Byte> p_i241906_5_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, CreatureEntity p_212832_2_) private static com.google.common.collect.ImmutableMap<MemoryModuleType<?>,
MemoryModuleStatus> constructEntryConditionMap
(MemoryModuleType<GlobalPos> p_233841_0_, MemoryModuleType<GlobalPos> p_233841_1_) protected void
start
(ServerWorld p_212831_1_, CreatureEntity 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
-
poiType
-
memoryToAcquire
-
onlyIfAdult
private final boolean onlyIfAdult -
onPoiAcquisitionEvent
-
nextScheduledStart
private long nextScheduledStart -
batchCache
-
-
Constructor Details
-
GatherPOITask
public GatherPOITask(PointOfInterestType p_i241906_1_, MemoryModuleType<GlobalPos> p_i241906_2_, MemoryModuleType<GlobalPos> p_i241906_3_, boolean p_i241906_4_, Optional<Byte> p_i241906_5_) -
GatherPOITask
public GatherPOITask(PointOfInterestType p_i241907_1_, MemoryModuleType<GlobalPos> p_i241907_2_, boolean p_i241907_3_, Optional<Byte> p_i241907_4_)
-
-
Method Details
-
constructEntryConditionMap
private static com.google.common.collect.ImmutableMap<MemoryModuleType<?>,MemoryModuleStatus> constructEntryConditionMap(MemoryModuleType<GlobalPos> p_233841_0_, MemoryModuleType<GlobalPos> p_233841_1_) -
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<CreatureEntity>
-
start
- Overrides:
start
in classTask<CreatureEntity>
-