Class AcquirePoi
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.AcquirePoi
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<AcquirePoi.JitteredLinearRetry>
private final MemoryModuleType<GlobalPos>
private long
private final boolean
private static final int
static final int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
ConstructorDescriptionAcquirePoi
(Predicate<Holder<PoiType>> p_217093_, MemoryModuleType<GlobalPos> p_217094_, boolean p_217095_, Optional<Byte> p_217096_) AcquirePoi
(Predicate<Holder<PoiType>> p_217087_, MemoryModuleType<GlobalPos> p_217088_, MemoryModuleType<GlobalPos> p_217089_, boolean p_217090_, Optional<Byte> p_217091_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_22347_, PathfinderMob p_22348_) private static com.google.common.collect.ImmutableMap<MemoryModuleType<?>,
MemoryStatus> constructEntryConditionMap
(MemoryModuleType<GlobalPos> p_22362_, MemoryModuleType<GlobalPos> p_22363_) static Path
findPathToPois
(Mob p_217098_, Set<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>> p_217099_) protected void
start
(ServerLevel p_22350_, PathfinderMob p_22351_, long p_22352_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
BATCH_SIZE
private static final int BATCH_SIZE- See Also:
-
RATE
private static final int RATE- See Also:
-
SCAN_RANGE
public static final int SCAN_RANGE- See Also:
-
poiType
-
memoryToAcquire
-
onlyIfAdult
private final boolean onlyIfAdult -
onPoiAcquisitionEvent
-
nextScheduledStart
private long nextScheduledStart -
batchCache
-
-
Constructor Details
-
AcquirePoi
public AcquirePoi(Predicate<Holder<PoiType>> p_217087_, MemoryModuleType<GlobalPos> p_217088_, MemoryModuleType<GlobalPos> p_217089_, boolean p_217090_, Optional<Byte> p_217091_) -
AcquirePoi
-
-
Method Details
-
constructEntryConditionMap
private static com.google.common.collect.ImmutableMap<MemoryModuleType<?>,MemoryStatus> constructEntryConditionMap(MemoryModuleType<GlobalPos> p_22362_, MemoryModuleType<GlobalPos> p_22363_) -
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<PathfinderMob>
-
start
- Overrides:
start
in classBehavior<PathfinderMob>
-
findPathToPois
-