net.minecraft.world.entity.ai.behavior

public class AcquirePoi

extends Behavior<PathfinderMob>

bdh
net.minecraft.world.entity.ai.behavior.AcquirePoi
net.minecraft.class_4096
net.minecraft.entity.ai.brain.task.FindPointOfInterestTask
net.minecraft.src.C_562_
net.minecraft.world.entity.ai.behavior.BehaviorFindPosition

Field summary

Modifier and TypeField
private static final int
d
BATCH_SIZE
field_30099
MAX_POSITIONS_PER_RUN
f_147364_
private static final int
e
RATE
field_30100
POSITION_EXPIRE_INTERVAL
f_147365_
public static final int
a
SCAN_RANGE
field_30098
POI_SORTING_RADIUS
f_147363_
private final Predicate<Holder<PoiType>>
f
poiType
field_19287
poiTypePredicate
f_22316_
private final MemoryModuleType<GlobalPos>
g
memoryToAcquire
field_20287
targetMemoryModuleType
f_22317_
private final boolean
h
onlyIfAdult
field_18854
onlyRunIfChild
f_22318_
private final Optional<Byte>
i
onPoiAcquisitionEvent
field_25812
entityStatus
f_22319_
private long
j
nextScheduledStart
field_18332
positionExpireTimeLimit
f_22320_
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<AcquirePoi$JitteredLinearRetry>
k
batchCache
field_19289
foundPositionsToExpiry
f_22321_

Constructor summary

ModifierConstructor
public (Predicate<Holder<PoiType>> poiTypePredicate, MemoryModuleType<GlobalPos> moduleType, MemoryModuleType<GlobalPos> targetMemoryModuleType, boolean onlyRunIfChild, Optional<Byte> entityStatus)
public (Predicate<Holder<PoiType>> poiTypePredicate, MemoryModuleType<GlobalPos> moduleType, boolean onlyRunIfChild, Optional<Byte> entityStatus)

Method summary

Modifier and TypeMethod
private static com.google.common.collect.ImmutableMap<MemoryModuleType<?>, MemoryStatus>
a(bku<hb> arg0, bku<hb> arg1)
constructEntryConditionMap(MemoryModuleType<GlobalPos> arg0, MemoryModuleType<GlobalPos> arg1)
method_29245(class_4140<class_4208> arg0, class_4140<class_4208> arg1)
create(MemoryModuleType<GlobalPos> firstModule, MemoryModuleType<GlobalPos> secondModule)
m_22361_(C_753_<C_4697_> p_22362_, C_753_<C_4697_> p_22363_)
protected boolean
a(agg arg0, bcl arg1)
checkExtraStartConditions(ServerLevel arg0, PathfinderMob arg1)
method_20816(class_3218 arg0, class_1314 arg1)
shouldRun(ServerWorld arg0, PathAwareEntity arg1)
m_6114_(C_12_ p_22348_, C_533_ arg1)
protected void
a(agg arg0, bcl arg1, long arg2)
start(ServerLevel arg0, PathfinderMob arg1, long arg2)
method_20817(class_3218 arg0, class_1314 arg1, long arg2)
run(ServerWorld arg0, PathAwareEntity arg1, long arg2)
m_6735_(C_12_ p_22351_, C_533_ p_22352_, long arg2)
public static Path
a(bce arg0, Set<com.mojang.datafixers.util.Pair<hc<bmv>, gt>> arg1)
findPathToPois(Mob arg0, Set<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>> arg1)
method_43965(class_1308 arg0, Set<com.mojang.datafixers.util.Pair<class_6880<class_4158>, class_2338>> arg1)
findPathToPoi(MobEntity entity, Set<com.mojang.datafixers.util.Pair<RegistryEntry<PointOfInterestType>, BlockPos>> pois)
m_217097_(C_526_ p_217098_, Set<com.mojang.datafixers.util.Pair<C_203228_<C_792_>, C_4675_>> p_217099_)