net.minecraft.world.entity.ai.village.poi

public class PoiManager

extends SectionStorage<PoiSection>

bqz
net.minecraft.world.entity.ai.village.poi.PoiManager
net.minecraft.class_4153
net.minecraft.unmapped.C_uegwgivt
net.minecraft.world.poi.PointOfInterestStorage
net.minecraft.world.poi.PointOfInterestStorage
net.minecraft.src.C_787_
net.minecraft.world.entity.ai.village.poi.VillagePlace

Field summary

Modifier and TypeField
public static final int
a
MAX_VILLAGE_DISTANCE
field_30265
f_kjhqnjbr
field_30265
MAX_VILLAGE_DISTANCE
f_148565_
public static final int
b
VILLAGE_SECTION_SIZE
field_30266
f_zaepnyld
field_30266
VILLAGE_SECTION_SIZE
f_148566_
private final PoiManager$DistanceTracker
d
distanceTracker
field_18484
f_aglguhde
pointOfInterestDistanceTracker
pointOfInterestDistanceTracker
f_27029_
private final it.unimi.dsi.fastutil.longs.LongSet
e
loadedChunks
field_20688
f_bwcnjgqz
preloadedChunks
preloadedChunks
f_27030_

Constructor summary

ModifierConstructor
public (Path path, com.mojang.datafixers.DataFixer dataFixer, boolean dsync, RegistryAccess registryManager, LevelHeightAccessor world)

Method summary

Modifier and TypeMethod
public void
a(gu arg0, he<brc> arg1)
add(BlockPos arg0, Holder<PoiType> arg1)
method_19115(class_2338 arg0, class_6880<class_4158> arg1)
m_horxsngu(C_hynzadkk arg0, C_cjzoxshv<C_voztdcrg> arg1)
add(BlockPos pos, RegistryEntry<PointOfInterestType> type)
add(BlockPos pos, Holder<PointOfInterestType> type)
m_217919_(C_4675_ p_217921_, C_203228_<C_792_> arg1)
public void
a(gu arg0)
remove(BlockPos arg0)
method_19112(class_2338 arg0)
m_qvdigcdn(C_hynzadkk arg0)
remove(BlockPos pos)
remove(BlockPos pos)
m_27079_(C_4675_ arg0)
public long
a(Predicate<he<brc>> arg0, gu arg1, int arg2, bqz$b arg3)
getCountInRange(Predicate<Holder<PoiType>> arg0, BlockPos arg1, int arg2, PoiManager$Occupancy arg3)
method_20252(Predicate<class_6880<class_4158>> arg0, class_2338 arg1, int arg2, class_4153$class_4155 arg3)
m_lhqnzakw(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, C_hynzadkk arg1, int arg2, C_uegwgivt$C_dzezdmdw arg3)
count(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
count(Predicate<Holder<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27121_(Predicate<C_203228_<C_792_>> p_27123_, C_4675_ p_27124_, int p_27125_, C_787_$C_789_ arg3)
public boolean
a(acp<brc> arg0, gu arg1)
existsAtPosition(ResourceKey<PoiType> arg0, BlockPos arg1)
method_26339(class_5321<class_4158> arg0, class_2338 arg1)
m_ssqvzvty(C_xhhleach<C_voztdcrg> arg0, C_hynzadkk arg1)
hasTypeAt(RegistryKey<PointOfInterestType> type, BlockPos pos)
hasTypeAt(RegistryKey<PointOfInterestType> registryKey, BlockPos pos)
m_217874_(C_5264_<C_792_> p_217876_, C_4675_ arg1)
public Stream<PoiRecord>
b(Predicate<he<brc>> arg0, gu arg1, int arg2, bqz$b arg3)
getInSquare(Predicate<Holder<PoiType>> arg0, BlockPos arg1, int arg2, PoiManager$Occupancy arg3)
method_22383(Predicate<class_6880<class_4158>> arg0, class_2338 arg1, int arg2, class_4153$class_4155 arg3)
m_hmjectje(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, C_hynzadkk arg1, int arg2, C_uegwgivt$C_dzezdmdw arg3)
getInSquare(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
getInSquare(Predicate<Holder<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27166_(Predicate<C_203228_<C_792_>> p_27168_, C_4675_ p_27169_, int p_27170_, C_787_$C_789_ arg3)
public Stream<PoiRecord>
c(Predicate<he<brc>> arg0, gu arg1, int arg2, bqz$b arg3)
getInRange(Predicate<Holder<PoiType>> arg0, BlockPos arg1, int arg2, PoiManager$Occupancy arg3)
method_19125(Predicate<class_6880<class_4158>> arg0, class_2338 arg1, int arg2, class_4153$class_4155 arg3)
m_dsxxnxyk(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, C_hynzadkk arg1, int arg2, C_uegwgivt$C_dzezdmdw arg3)
getInCircle(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
getInCircle(Predicate<Holder<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27181_(Predicate<C_203228_<C_792_>> p_27183_, C_4675_ p_27184_, int p_27185_, C_787_$C_789_ arg3)
public Stream<PoiRecord>
a(Predicate<he<brc>> arg0, clt arg1, bqz$b arg2)
getInChunk(Predicate<Holder<PoiType>> arg0, ChunkPos arg1, PoiManager$Occupancy arg2)
method_19123(Predicate<class_6880<class_4158>> arg0, class_1923 arg1, class_4153$class_4155 arg2)
m_flhvikjr(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, C_ynrszrtu arg1, C_uegwgivt$C_dzezdmdw arg2)
getInChunk(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, ChunkPos chunkPos, PointOfInterestStorage$OccupationStatus occupationStatus)
getInChunk(Predicate<Holder<PointOfInterestType>> arg0, ChunkPos chunkPos, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27117_(Predicate<C_203228_<C_792_>> p_27119_, C_1560_ p_27120_, C_787_$C_789_ arg2)
public Stream<BlockPos>
a(Predicate<he<brc>> arg0, Predicate<gu> arg1, gu arg2, int arg3, bqz$b arg4)
findAll(Predicate<Holder<PoiType>> arg0, Predicate<BlockPos> arg1, BlockPos arg2, int arg3, PoiManager$Occupancy arg4)
method_21647(Predicate<class_6880<class_4158>> arg0, Predicate<class_2338> arg1, class_2338 arg2, int arg3, class_4153$class_4155 arg4)
m_mbydjeoc(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, Predicate<C_hynzadkk> arg1, C_hynzadkk arg2, int arg3, C_uegwgivt$C_dzezdmdw arg4)
getPositions(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
getPositions(Predicate<Holder<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27138_(Predicate<C_203228_<C_792_>> p_27140_, Predicate<C_4675_> p_27141_, C_4675_ p_27142_, int p_27143_, C_787_$C_789_ arg4)
public Stream<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>>
b(Predicate<he<brc>> arg0, Predicate<gu> arg1, gu arg2, int arg3, bqz$b arg4)
findAllWithType(Predicate<Holder<PoiType>> arg0, Predicate<BlockPos> arg1, BlockPos arg2, int arg3, PoiManager$Occupancy arg4)
method_43983(Predicate<class_6880<class_4158>> arg0, Predicate<class_2338> arg1, class_2338 arg2, int arg3, class_4153$class_4155 arg4)
m_rsbvkuag(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, Predicate<C_hynzadkk> arg1, C_hynzadkk arg2, int arg3, C_uegwgivt$C_dzezdmdw arg4)
getTypesAndPositions(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_rsbvkuag(Predicate<Holder<PointOfInterestType>> arg0, Predicate<BlockPos> arg1, BlockPos pos, int arg3, PointOfInterestStorage$OccupationStatus arg4)
m_217983_(Predicate<C_203228_<C_792_>> p_217985_, Predicate<C_4675_> p_217986_, C_4675_ p_217987_, int p_217988_, C_787_$C_789_ arg4)
public Stream<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>>
c(Predicate<he<brc>> arg0, Predicate<gu> arg1, gu arg2, int arg3, bqz$b arg4)
findAllClosestFirstWithType(Predicate<Holder<PoiType>> arg0, Predicate<BlockPos> arg1, BlockPos arg2, int arg3, PoiManager$Occupancy arg4)
method_30957(Predicate<class_6880<class_4158>> arg0, Predicate<class_2338> arg1, class_2338 arg2, int arg3, class_4153$class_4155 arg4)
m_fcmsgafb(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, Predicate<C_hynzadkk> arg1, C_hynzadkk arg2, int arg3, C_uegwgivt$C_dzezdmdw arg4)
getSortedTypesAndPositions(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_fcmsgafb(Predicate<Holder<PointOfInterestType>> arg0, Predicate<BlockPos> arg1, BlockPos pos, int arg3, PointOfInterestStorage$OccupationStatus arg4)
m_217994_(Predicate<C_203228_<C_792_>> p_217996_, Predicate<C_4675_> p_217997_, C_4675_ p_217998_, int p_217999_, C_787_$C_789_ arg4)
public Optional<BlockPos>
d(Predicate<he<brc>> arg0, Predicate<gu> arg1, gu arg2, int arg3, bqz$b arg4)
find(Predicate<Holder<PoiType>> arg0, Predicate<BlockPos> arg1, BlockPos arg2, int arg3, PoiManager$Occupancy arg4)
method_19127(Predicate<class_6880<class_4158>> arg0, Predicate<class_2338> arg1, class_2338 arg2, int arg3, class_4153$class_4155 arg4)
m_ffztljrx(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, Predicate<C_hynzadkk> arg1, C_hynzadkk arg2, int arg3, C_uegwgivt$C_dzezdmdw arg4)
getPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
getPosition(Predicate<Holder<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27186_(Predicate<C_203228_<C_792_>> p_27188_, Predicate<C_4675_> p_27189_, C_4675_ p_27190_, int p_27191_, C_787_$C_789_ arg4)
public Optional<BlockPos>
d(Predicate<he<brc>> arg0, gu arg1, int arg2, bqz$b arg3)
findClosest(Predicate<Holder<PoiType>> arg0, BlockPos arg1, int arg2, PoiManager$Occupancy arg3)
method_20006(Predicate<class_6880<class_4158>> arg0, class_2338 arg1, int arg2, class_4153$class_4155 arg3)
m_lcdrnmjd(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, C_hynzadkk arg1, int arg2, C_uegwgivt$C_dzezdmdw arg3)
getNearestPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
getNearestPosition(Predicate<Holder<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27192_(Predicate<C_203228_<C_792_>> p_27194_, C_4675_ p_27195_, int p_27196_, C_787_$C_789_ arg3)
public Optional<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>>
e(Predicate<he<brc>> arg0, gu arg1, int arg2, bqz$b arg3)
findClosestWithType(Predicate<Holder<PoiType>> arg0, BlockPos arg1, int arg2, PoiManager$Occupancy arg3)
method_43985(Predicate<class_6880<class_4158>> arg0, class_2338 arg1, int arg2, class_4153$class_4155 arg3)
m_zwfcqkjd(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, C_hynzadkk arg1, int arg2, C_uegwgivt$C_dzezdmdw arg3)
getNearestTypeAndPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_zwfcqkjd(Predicate<Holder<PointOfInterestType>> arg0, BlockPos pos, int arg2, PointOfInterestStorage$OccupationStatus arg3)
m_218002_(Predicate<C_203228_<C_792_>> p_218004_, C_4675_ p_218005_, int p_218006_, C_787_$C_789_ arg3)
public Optional<BlockPos>
e(Predicate<he<brc>> arg0, Predicate<gu> arg1, gu arg2, int arg3, bqz$b arg4)
findClosest(Predicate<Holder<PoiType>> arg0, Predicate<BlockPos> arg1, BlockPos arg2, int arg3, PoiManager$Occupancy arg4)
method_34712(Predicate<class_6880<class_4158>> arg0, Predicate<class_2338> arg1, class_2338 arg2, int arg3, class_4153$class_4155 arg4)
m_bnugafgz(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, Predicate<C_hynzadkk> arg1, C_hynzadkk arg2, int arg3, C_uegwgivt$C_dzezdmdw arg4)
getNearestPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_bnugafgz(Predicate<Holder<PointOfInterestType>> arg0, Predicate<BlockPos> arg1, BlockPos pos, int arg3, PointOfInterestStorage$OccupationStatus arg4)
m_148658_(Predicate<C_203228_<C_792_>> p_148660_, Predicate<C_4675_> p_148661_, C_4675_ p_148662_, int p_148663_, C_787_$C_789_ arg4)
public Optional<BlockPos>
a(Predicate<he<brc>> arg0, BiPredicate<he<brc>, gu> arg1, gu arg2, int arg3)
take(Predicate<Holder<PoiType>> arg0, BiPredicate<Holder<PoiType>, BlockPos> arg1, BlockPos arg2, int arg3)
method_19126(Predicate<class_6880<class_4158>> arg0, BiPredicate<class_6880<class_4158>, class_2338> arg1, class_2338 arg2, int arg3)
m_tjmtajvw(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, BiPredicate<C_cjzoxshv<C_voztdcrg>, C_hynzadkk> arg1, C_hynzadkk arg2, int arg3)
getPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BiPredicate<RegistryEntry<PointOfInterestType>, BlockPos> arg1, BlockPos pos, int radius)
getPosition(Predicate<Holder<PointOfInterestType>> typePredicate, BiPredicate<Holder<PointOfInterestType>, BlockPos> arg1, BlockPos pos, int radius)
m_217946_(Predicate<C_203228_<C_792_>> p_217948_, BiPredicate<C_203228_<C_792_>, C_4675_> p_217949_, C_4675_ p_217950_, int arg3)
public Optional<BlockPos>
a(Predicate<he<brc>> arg0, Predicate<gu> arg1, bqz$b arg2, gu arg3, int arg4, apf arg5)
getRandom(Predicate<Holder<PoiType>> arg0, Predicate<BlockPos> arg1, PoiManager$Occupancy arg2, BlockPos arg3, int arg4, RandomSource arg5)
method_20005(Predicate<class_6880<class_4158>> arg0, Predicate<class_2338> arg1, class_4153$class_4155 arg2, class_2338 arg3, int arg4, class_5819 arg5)
m_uihpyglz(Predicate<C_cjzoxshv<C_voztdcrg>> arg0, Predicate<C_hynzadkk> arg1, C_uegwgivt$C_dzezdmdw arg2, C_hynzadkk arg3, int arg4, C_rlomrsco arg5)
getPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> positionPredicate, PointOfInterestStorage$OccupationStatus occupationStatus, BlockPos pos, int radius, Random random)
getPosition(Predicate<Holder<PointOfInterestType>> typePredicate, Predicate<BlockPos> positionPredicate, PointOfInterestStorage$OccupationStatus occupationStatus, BlockPos pos, int radius, RandomGenerator random)
m_217951_(Predicate<C_203228_<C_792_>> p_217953_, Predicate<C_4675_> p_217954_, C_787_$C_789_ p_217955_, C_4675_ p_217956_, int p_217957_, C_212974_ arg5)
public boolean
b(gu arg0)
release(BlockPos arg0)
method_19129(class_2338 arg0)
m_uwrbmepr(C_hynzadkk arg0)
releaseTicket(BlockPos pos)
releaseTicket(BlockPos pos)
m_27154_(C_4675_ arg0)
public boolean
a(gu arg0, Predicate<he<brc>> arg1)
exists(BlockPos arg0, Predicate<Holder<PoiType>> arg1)
method_19116(class_2338 arg0, Predicate<class_6880<class_4158>> arg1)
m_tznjyvjb(C_hynzadkk arg0, Predicate<C_cjzoxshv<C_voztdcrg>> arg1)
test(BlockPos pos, Predicate<RegistryEntry<PointOfInterestType>> predicate)
test(BlockPos pos, Predicate<Holder<PointOfInterestType>> predicate)
m_27091_(C_4675_ p_27093_, Predicate<C_203228_<C_792_>> arg1)
public Optional<Holder<PoiType>>
c(gu arg0)
getType(BlockPos arg0)
method_19132(class_2338 arg0)
m_agkornyv(C_hynzadkk arg0)
getType(BlockPos pos)
getType(BlockPos pos)
m_27177_(C_4675_ arg0)
public int
d(gu arg0)
getFreeTickets(BlockPos arg0)
method_35155(class_2338 arg0)
m_ewsshoyd(C_hynzadkk arg0)
getFreeTickets(BlockPos pos)
m_ewsshoyd(BlockPos pos)
m_148653_(C_4675_ arg0)
public int
a(hx arg0)
sectionsToVillage(SectionPos arg0)
method_19118(class_4076 arg0)
m_evxnnkpe(C_zubvmeye arg0)
getDistanceFromNearestOccupied(ChunkSectionPos pos)
getDistanceFromNearestOccupied(ChunkSectionPos pos)
m_27098_(C_4710_ arg0)
boolean
g(long arg0)
isVillageCenter(long arg0)
method_19133(long arg0)
m_zjhmevdx(long arg0)
isOccupied(long pos)
isOccupied(long pos)
m_27197_(long arg0)
public void
a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
method_19290(BooleanSupplier arg0)
m_emvuwkbz(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
m_6202_(BooleanSupplier arg0)
protected void
a(long arg0)
setDirty(long arg0)
method_19288(long arg0)
m_ebhrilfy(long arg0)
onUpdate(long arg0)
onUpdate(long arg0)
m_5838_(long arg0)
protected void
b(long arg0)
onSectionLoad(long arg0)
method_19291(long arg0)
m_iyehricr(long arg0)
onLoad(long arg0)
onLoad(long arg0)
m_5839_(long arg0)
public void
a(hx arg0, dej arg1)
checkConsistencyWithBlocks(SectionPos arg0, LevelChunkSection arg1)
method_19510(class_4076 arg0, class_2826 arg1)
m_nnrgqcxo(C_zubvmeye arg0, C_aurosfgf arg1)
initForPalette(ChunkSectionPos sectionPos, ChunkSection chunkSection)
initForPalette(ChunkSectionPos arg0, ChunkSection section)
m_280570_(C_4710_ p_281893_, C_2139_ arg1)
private static boolean
a(dej arg0)
mayHavePoi(LevelChunkSection arg0)
method_20345(class_2826 arg0)
m_safkagzh(C_aurosfgf arg0)
shouldScan(ChunkSection chunkSection)
shouldScan(ChunkSection section)
m_27060_(C_2139_ p_27061_)
private void
a(dej arg0, hx arg1, BiConsumer<gu, he<brc>> arg2)
updateFromSection(LevelChunkSection arg0, SectionPos arg1, BiConsumer<BlockPos, Holder<PoiType>> arg2)
method_20348(class_2826 arg0, class_4076 arg1, BiConsumer<class_2338, class_6880<class_4158>> arg2)
m_hlfacbyy(C_aurosfgf arg0, C_zubvmeye arg1, BiConsumer<C_hynzadkk, C_cjzoxshv<C_voztdcrg>> arg2)
scanAndPopulate(ChunkSection chunkSection, ChunkSectionPos sectionPos, BiConsumer<BlockPos, RegistryEntry<PointOfInterestType>> populator)
scanAndPopulate(ChunkSection section, ChunkSectionPos sectionPos, BiConsumer<BlockPos, Holder<PointOfInterestType>> populator)
m_27069_(C_2139_ p_27071_, C_4710_ p_27072_, BiConsumer<C_4675_, C_203228_<C_792_>> arg2)
public void
a(cmp arg0, gu arg1, int arg2)
ensureLoadedAndValid(LevelReader arg0, BlockPos arg1, int arg2)
method_22439(class_4538 arg0, class_2338 arg1, int arg2)
m_owscuzvh(C_eemzphbi arg0, C_hynzadkk arg1, int arg2)
preloadChunks(WorldView world, BlockPos pos, int radius)
preloadChunks(WorldView world, BlockPos pos, int radius)
m_27056_(C_1599_ p_27058_, C_4675_ p_27059_, int arg2)