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