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 int
private it.unimi.dsi.fastutil.longs.Long2ObjectMap<AcquirePoi.JitteredLinearRetry>
private MemoryModuleType<GlobalPos>
private long
private boolean
private PoiType
private static int
static int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
ConstructorDescriptionAcquirePoi(PoiType p_22329_, MemoryModuleType<GlobalPos> p_22330_, boolean p_22331_, Optional<Byte> p_22332_)
AcquirePoi(PoiType p_22323_, MemoryModuleType<GlobalPos> p_22324_, MemoryModuleType<GlobalPos> p_22325_, boolean p_22326_, Optional<Byte> p_22327_)
-
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_)
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:
- Constant Field Values
-
RATE
private static final int RATE- See Also:
- Constant Field Values
-
SCAN_RANGE
public static final int SCAN_RANGE- See Also:
- Constant Field Values
-
poiType
-
memoryToAcquire
-
onlyIfAdult
private final boolean onlyIfAdult -
onPoiAcquisitionEvent
-
nextScheduledStart
private long nextScheduledStart -
batchCache
-
-
Constructor Details
-
AcquirePoi
public AcquirePoi(PoiType p_22323_, MemoryModuleType<GlobalPos> p_22324_, MemoryModuleType<GlobalPos> p_22325_, boolean p_22326_, Optional<Byte> p_22327_) -
AcquirePoi
public AcquirePoi(PoiType p_22329_, MemoryModuleType<GlobalPos> p_22330_, boolean p_22331_, Optional<Byte> p_22332_)
-
-
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>
-