net.minecraft.entity.ai.brain.task

public class FindPointOfInterestTask

extends Task<PathAwareEntity>

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

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
private static com.google.common.collect.ImmutableMap<MemoryModuleType<?>, MemoryModuleState>
a(bku<hb> o, bku<hb> o)
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_hnviicqg(C_vbbyoqyw<C_ovcqqyqp> arg0, C_vbbyoqyw<C_ovcqqyqp> 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 o, bcl arg1)
checkExtraStartConditions(ServerLevel arg0, PathfinderMob arg1)
method_20816(class_3218 arg0, class_1314 arg1)
shouldRun(ServerWorld arg0, PathAwareEntity arg1)
m_affurcbk(C_bdwnwhiu arg0, C_hqdayibh arg1)
shouldRun(ServerWorld arg0, PathAwareEntity arg1)
m_6114_(C_12_ p_22348_, C_533_ arg1)
protected void
a(agg o, bcl o, 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_xzttmfql(C_bdwnwhiu arg0, C_hqdayibh 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 o, Set<com.mojang.datafixers.util.Pair<hc<bmv>, gt>> o)
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_ptkjaiyi(C_dxkfswlz arg0, Set<com.mojang.datafixers.util.Pair<C_cjzoxshv<C_voztdcrg>, C_hynzadkk>> arg1)
m_ptkjaiyi(MobEntity arg0, Set<com.mojang.datafixers.util.Pair<Holder<PointOfInterestType>, BlockPos>> arg1)
m_217097_(C_526_ p_217098_, Set<com.mojang.datafixers.util.Pair<C_203228_<C_792_>, C_4675_>> p_217099_)