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

public class PoiManager

extends SectionStorage<PoiSection, PoiSection$Packed>

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

Constructor summary

ModifierConstructor
public (RegionStorageInfo storageKey, Path directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync, RegistryAccess registryManager, ChunkIOErrorReporter errorHandler, LevelHeightAccessor world)

Method summary

Modifier and TypeMethod
public void
a(ji arg0, jr<cgp> arg1)
add(BlockPos arg0, Holder<PoiType> arg1)
method_19115(class_2338 arg0, class_6880<class_4158> arg1)
add(BlockPos pos, RegistryEntry<PointOfInterestType> type)
public void
a(ji arg0)
remove(BlockPos arg0)
method_19112(class_2338 arg0)
remove(BlockPos pos)
public long
a(Predicate<jr<cgp>> arg0, ji arg1, int arg2, cgm$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)
count(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
public boolean
a(aku<cgp> arg0, ji arg1)
existsAtPosition(ResourceKey<PoiType> arg0, BlockPos arg1)
method_26339(class_5321<class_4158> arg0, class_2338 arg1)
hasTypeAt(RegistryKey<PointOfInterestType> type, BlockPos pos)
public Stream<PoiRecord>
b(Predicate<jr<cgp>> arg0, ji arg1, int arg2, cgm$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)
getInSquare(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
public Stream<PoiRecord>
c(Predicate<jr<cgp>> arg0, ji arg1, int arg2, cgm$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)
getInCircle(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
public Stream<PoiRecord>
a(Predicate<jr<cgp>> arg0, dfp arg1, cgm$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)
getInChunk(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, ChunkPos chunkPos, PointOfInterestStorage$OccupationStatus occupationStatus)
public Stream<BlockPos>
a(Predicate<jr<cgp>> arg0, Predicate<ji> arg1, ji arg2, int arg3, cgm$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)
getPositions(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
public Stream<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>>
b(Predicate<jr<cgp>> arg0, Predicate<ji> arg1, ji arg2, int arg3, cgm$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)
getTypesAndPositions(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
public Stream<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>>
c(Predicate<jr<cgp>> arg0, Predicate<ji> arg1, ji arg2, int arg3, cgm$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)
getSortedTypesAndPositions(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
public Optional<BlockPos>
d(Predicate<jr<cgp>> arg0, Predicate<ji> arg1, ji arg2, int arg3, cgm$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)
getPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
public Optional<BlockPos>
d(Predicate<jr<cgp>> arg0, ji arg1, int arg2, cgm$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)
getNearestPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
public Optional<com.mojang.datafixers.util.Pair<Holder<PoiType>, BlockPos>>
e(Predicate<jr<cgp>> arg0, ji arg1, int arg2, cgm$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)
getNearestTypeAndPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
public Optional<BlockPos>
e(Predicate<jr<cgp>> arg0, Predicate<ji> arg1, ji arg2, int arg3, cgm$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)
getNearestPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage$OccupationStatus occupationStatus)
public Optional<BlockPos>
a(Predicate<jr<cgp>> arg0, BiPredicate<jr<cgp>, ji> arg1, ji 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)
getPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, BiPredicate<RegistryEntry<PointOfInterestType>, BlockPos> posPredicate, BlockPos pos, int radius)
public Optional<BlockPos>
a(Predicate<jr<cgp>> arg0, Predicate<ji> arg1, cgm$b arg2, ji arg3, int arg4, azh 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)
getPosition(Predicate<RegistryEntry<PointOfInterestType>> typePredicate, Predicate<BlockPos> positionPredicate, PointOfInterestStorage$OccupationStatus occupationStatus, BlockPos pos, int radius, Random random)
public boolean
b(ji arg0)
release(BlockPos arg0)
method_19129(class_2338 arg0)
releaseTicket(BlockPos pos)
public boolean
a(ji arg0, Predicate<jr<cgp>> arg1)
exists(BlockPos arg0, Predicate<Holder<PoiType>> arg1)
method_19116(class_2338 arg0, Predicate<class_6880<class_4158>> arg1)
test(BlockPos pos, Predicate<RegistryEntry<PointOfInterestType>> predicate)
public Optional<Holder<PoiType>>
c(ji arg0)
getType(BlockPos arg0)
method_19132(class_2338 arg0)
getType(BlockPos pos)
public int
d(ji arg0)
getFreeTickets(BlockPos arg0)
method_35155(class_2338 arg0)
getFreeTickets(BlockPos pos)
public int
a(kk arg0)
sectionsToVillage(SectionPos arg0)
method_19118(class_4076 arg0)
getDistanceFromNearestOccupied(ChunkSectionPos pos)
boolean
g(long arg0)
isVillageCenter(long arg0)
method_19133(long arg0)
isOccupied(long pos)
public void
a(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
method_19290(BooleanSupplier arg0)
tick(BooleanSupplier arg0)
protected void
a(long arg0)
setDirty(long arg0)
method_19288(long arg0)
onUpdate(long arg0)
protected void
b(long arg0)
onSectionLoad(long arg0)
method_19291(long arg0)
onLoad(long arg0)
public void
a(kk arg0, dze arg1)
checkConsistencyWithBlocks(SectionPos arg0, LevelChunkSection arg1)
method_19510(class_4076 arg0, class_2826 arg1)
initForPalette(ChunkSectionPos sectionPos, ChunkSection chunkSection)
private static boolean
a(dze arg0)
mayHavePoi(LevelChunkSection arg0)
method_20345(class_2826 arg0)
shouldScan(ChunkSection chunkSection)
private void
a(dze arg0, kk arg1, BiConsumer<ji, jr<cgp>> 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)
scanAndPopulate(ChunkSection chunkSection, ChunkSectionPos sectionPos, BiConsumer<BlockPos, RegistryEntry<PointOfInterestType>> populator)
public void
a(dgm arg0, ji 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)