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

public class PoiManager

extends SectionStorage<PoiSection>

bhs
net.minecraft.world.entity.ai.village.poi.PoiManager
net.minecraft.class_4153
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
field_30265
f_148565_
public static final int
b
VILLAGE_SECTION_SIZE
field_30266
field_30266
f_148566_
private final PoiManager$DistanceTracker
d
distanceTracker
field_18484
pointOfInterestDistanceTracker
f_27029_
private final it.unimi.dsi.fastutil.longs.LongSet
e
loadedChunks
field_20688
preloadedChunks
f_27030_

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(gj arg0, bhv arg1)
add(BlockPos arg0, PoiType arg1)
method_19115(class_2338 arg0, class_4158 arg1)
add(BlockPos pos, PointOfInterestType type)
m_27085_(C_4675_ p_27087_, C_792_ arg1)
public void
a(gj arg0)
remove(BlockPos arg0)
method_19112(class_2338 arg0)
remove(BlockPos pos)
m_27079_(C_4675_ arg0)
public long
a(Predicate<bhv> arg0, gj arg1, int arg2, bhs$b arg3)
getCountInRange(Predicate<PoiType> arg0, BlockPos arg1, int arg2, PoiManager$Occupancy arg3)
method_20252(Predicate<class_4158> arg0, class_2338 arg1, int arg2, class_4153$class_4155 arg3)
count(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27121_(Predicate<C_792_> p_27123_, C_4675_ p_27124_, int p_27125_, C_787_$C_789_ arg3)
public boolean
a(bhv arg0, gj arg1)
existsAtPosition(PoiType arg0, BlockPos arg1)
method_26339(class_4158 arg0, class_2338 arg1)
hasTypeAt(PointOfInterestType type, BlockPos pos)
m_27044_(C_792_ p_27046_, C_4675_ arg1)
public Stream<PoiRecord>
b(Predicate<bhv> arg0, gj arg1, int arg2, bhs$b arg3)
getInSquare(Predicate<PoiType> arg0, BlockPos arg1, int arg2, PoiManager$Occupancy arg3)
method_22383(Predicate<class_4158> arg0, class_2338 arg1, int arg2, class_4153$class_4155 arg3)
getInSquare(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27166_(Predicate<C_792_> p_27168_, C_4675_ p_27169_, int p_27170_, C_787_$C_789_ arg3)
public Stream<PoiRecord>
c(Predicate<bhv> arg0, gj arg1, int arg2, bhs$b arg3)
getInRange(Predicate<PoiType> arg0, BlockPos arg1, int arg2, PoiManager$Occupancy arg3)
method_19125(Predicate<class_4158> arg0, class_2338 arg1, int arg2, class_4153$class_4155 arg3)
getInCircle(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27181_(Predicate<C_792_> p_27183_, C_4675_ p_27184_, int p_27185_, C_787_$C_789_ arg3)
public Stream<PoiRecord>
a(Predicate<bhv> arg0, cac arg1, bhs$b arg2)
getInChunk(Predicate<PoiType> arg0, ChunkPos arg1, PoiManager$Occupancy arg2)
method_19123(Predicate<class_4158> arg0, class_1923 arg1, class_4153$class_4155 arg2)
getInChunk(Predicate<PointOfInterestType> typePredicate, ChunkPos chunkPos, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27117_(Predicate<C_792_> p_27119_, C_1560_ p_27120_, C_787_$C_789_ arg2)
public Stream<BlockPos>
a(Predicate<bhv> arg0, Predicate<gj> arg1, gj arg2, int arg3, bhs$b arg4)
findAll(Predicate<PoiType> arg0, Predicate<BlockPos> arg1, BlockPos arg2, int arg3, PoiManager$Occupancy arg4)
method_21647(Predicate<class_4158> arg0, Predicate<class_2338> arg1, class_2338 arg2, int arg3, class_4153$class_4155 arg4)
getPositions(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27138_(Predicate<C_792_> p_27140_, Predicate<C_4675_> p_27141_, C_4675_ p_27142_, int p_27143_, C_787_$C_789_ arg4)
public Stream<BlockPos>
b(Predicate<bhv> arg0, Predicate<gj> arg1, gj arg2, int arg3, bhs$b arg4)
findAllClosestFirst(Predicate<PoiType> arg0, Predicate<BlockPos> arg1, BlockPos arg2, int arg3, PoiManager$Occupancy arg4)
method_30957(Predicate<class_4158> arg0, Predicate<class_2338> arg1, class_2338 arg2, int arg3, class_4153$class_4155 arg4)
getSortedPositions(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27171_(Predicate<C_792_> p_27173_, Predicate<C_4675_> p_27174_, C_4675_ p_27175_, int p_27176_, C_787_$C_789_ arg4)
public Optional<BlockPos>
c(Predicate<bhv> arg0, Predicate<gj> arg1, gj arg2, int arg3, bhs$b arg4)
find(Predicate<PoiType> arg0, Predicate<BlockPos> arg1, BlockPos arg2, int arg3, PoiManager$Occupancy arg4)
method_19127(Predicate<class_4158> arg0, Predicate<class_2338> arg1, class_2338 arg2, int arg3, class_4153$class_4155 arg4)
getPosition(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27186_(Predicate<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<bhv> arg0, gj arg1, int arg2, bhs$b arg3)
findClosest(Predicate<PoiType> arg0, BlockPos arg1, int arg2, PoiManager$Occupancy arg3)
method_20006(Predicate<class_4158> arg0, class_2338 arg1, int arg2, class_4153$class_4155 arg3)
getNearestPosition(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_27192_(Predicate<C_792_> p_27194_, C_4675_ p_27195_, int p_27196_, C_787_$C_789_ arg3)
public Optional<BlockPos>
d(Predicate<bhv> arg0, Predicate<gj> arg1, gj arg2, int arg3, bhs$b arg4)
findClosest(Predicate<PoiType> arg0, Predicate<BlockPos> arg1, BlockPos arg2, int arg3, PoiManager$Occupancy arg4)
method_34712(Predicate<class_4158> arg0, Predicate<class_2338> arg1, class_2338 arg2, int arg3, class_4153$class_4155 arg4)
getNearestPosition(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
m_148658_(Predicate<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<bhv> arg0, Predicate<gj> arg1, gj arg2, int arg3)
take(Predicate<PoiType> arg0, Predicate<BlockPos> arg1, BlockPos arg2, int arg3)
method_19126(Predicate<class_4158> arg0, Predicate<class_2338> arg1, class_2338 arg2, int arg3)
getPosition(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> positionPredicate, BlockPos pos, int radius)
m_27133_(Predicate<C_792_> p_27135_, Predicate<C_4675_> p_27136_, C_4675_ p_27137_, int arg3)
public Optional<BlockPos>
a(Predicate<bhv> arg0, Predicate<gj> arg1, bhs$b arg2, gj arg3, int arg4, Random arg5)
getRandom(Predicate<PoiType> arg0, Predicate<BlockPos> arg1, PoiManager$Occupancy arg2, BlockPos arg3, int arg4, Random arg5)
method_20005(Predicate<class_4158> arg0, Predicate<class_2338> arg1, class_4153$class_4155 arg2, class_2338 arg3, int arg4, Random arg5)
getPosition(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> positionPredicate, PointOfInterestStorage$OccupationStatus occupationStatus, BlockPos pos, int radius, Random random)
m_27126_(Predicate<C_792_> p_27128_, Predicate<C_4675_> p_27129_, C_787_$C_789_ p_27130_, C_4675_ p_27131_, int p_27132_, Random arg5)
public boolean
b(gj arg0)
release(BlockPos arg0)
method_19129(class_2338 arg0)
releaseTicket(BlockPos pos)
m_27154_(C_4675_ arg0)
public boolean
a(gj arg0, Predicate<bhv> arg1)
exists(BlockPos arg0, Predicate<PoiType> arg1)
method_19116(class_2338 arg0, Predicate<class_4158> arg1)
test(BlockPos pos, Predicate<PointOfInterestType> predicate)
m_27091_(C_4675_ p_27093_, Predicate<C_792_> arg1)
public Optional<PoiType>
c(gj arg0)
getType(BlockPos arg0)
method_19132(class_2338 arg0)
getType(BlockPos pos)
m_27177_(C_4675_ arg0)
public int
d(gj arg0)
getFreeTickets(BlockPos arg0)
method_35155(class_2338 arg0)
getFreeTickets(BlockPos pos)
m_148653_(C_4675_ arg0)
public int
a(hf arg0)
sectionsToVillage(SectionPos arg0)
method_19118(class_4076 arg0)
getDistanceFromNearestOccupied(ChunkSectionPos pos)
m_27098_(C_4710_ arg0)
boolean
g(long arg0)
isVillageCenter(long arg0)
method_19133(long arg0)
isOccupied(long pos)
m_27197_(long arg0)
public void
a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
method_19290(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
m_6202_(BooleanSupplier arg0)
protected void
a(long arg0)
setDirty(long arg0)
method_19288(long arg0)
onUpdate(long arg0)
m_5838_(long arg0)
protected void
b(long arg0)
onSectionLoad(long arg0)
method_19291(long arg0)
onLoad(long arg0)
m_5839_(long arg0)
public void
a(cac arg0, crb arg1)
checkConsistencyWithBlocks(ChunkPos arg0, LevelChunkSection arg1)
method_19510(class_1923 arg0, class_2826 arg1)
initForPalette(ChunkPos chunkPos, ChunkSection chunkSection)
m_27047_(C_1560_ p_27049_, C_2139_ arg1)
private static boolean
a(crb arg0)
mayHavePoi(LevelChunkSection arg0)
method_20345(class_2826 arg0)
shouldScan(ChunkSection chunkSection)
m_27060_(C_2139_ p_27061_)
private void
a(crb arg0, hf arg1, BiConsumer<gj, bhv> arg2)
updateFromSection(LevelChunkSection arg0, SectionPos arg1, BiConsumer<BlockPos, PoiType> arg2)
method_20348(class_2826 arg0, class_4076 arg1, BiConsumer<class_2338, class_4158> arg2)
scanAndPopulate(ChunkSection chunkSection, ChunkSectionPos sectionPos, BiConsumer<BlockPos, PointOfInterestType> arg2)
m_27069_(C_2139_ p_27071_, C_4710_ p_27072_, BiConsumer<C_4675_, C_792_> arg2)
public void
a(cay arg0, gj arg1, int arg2)
ensureLoadedAndValid(LevelReader arg0, BlockPos arg1, int arg2)
method_22439(class_4538 arg0, class_2338 arg1, int arg2)
preloadChunks(WorldView world, BlockPos pos, int radius)
m_27056_(C_1599_ p_27058_, C_4675_ p_27059_, int arg2)