net.minecraft.world.poi

public class PointOfInterestSet

net.minecraft.world.entity.ai.village.poi.PoiSection
net.minecraft.class_4157
net.minecraft.world.poi.PointOfInterestSet

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_18496
LOGGER
private final it.unimi.dsi.fastutil.shorts.Short2ObjectMap<PointOfInterest>
records
field_18497
pointsOfInterestByPos
private final Map<RegistryEntry<PointOfInterestType>, Set<PointOfInterest>>
byType
field_18498
pointsOfInterestByType
private final Runnable
setDirty
field_18499
updateListener
private boolean
isValid
field_19226
valid

Constructor summary

ModifierConstructor
public (Runnable updateListener)
private (Runnable updateListener, boolean valid, List<PointOfInterest> pois)

Method summary

Modifier and TypeMethod
public PointOfInterestSet$Serialized
pack()
method_61451()
toSerialized()
public Stream<PointOfInterest>
getRecords(Predicate<Holder<PoiType>> predicate, PoiManager$Occupancy occupancy)
method_19150(Predicate<class_6880<class_4158>> arg0, class_4153$class_4155 arg1)
get(Predicate<RegistryEntry<PointOfInterestType>> predicate, PointOfInterestStorage$OccupationStatus occupationStatus)
public PointOfInterest
add(BlockPos blockPos, Holder<PoiType> type)
method_19146(class_2338 arg0, class_6880<class_4158> arg1)
add(BlockPos pos, RegistryEntry<PointOfInterestType> type)
private boolean
add(PoiRecord record)
method_20350(class_4156 arg0)
add(PointOfInterest poi)
public void
remove(BlockPos pos)
method_19145(class_2338 arg0)
remove(BlockPos pos)
public int
getFreeTickets(BlockPos pos)
method_35157(class_2338 arg0)
getFreeTickets(BlockPos pos)
public boolean
release(BlockPos pos)
method_19153(class_2338 arg0)
releaseTicket(BlockPos pos)
public boolean
exists(BlockPos pos, Predicate<Holder<PoiType>> predicate)
method_19147(class_2338 arg0, Predicate<class_6880<class_4158>> arg1)
test(BlockPos pos, Predicate<RegistryEntry<PointOfInterestType>> predicate)
public Optional<RegistryEntry<PointOfInterestType>>
getType(BlockPos pos)
method_19154(class_2338 arg0)
getType(BlockPos pos)
private Optional<PointOfInterest>
getPoiRecord(BlockPos pos)
method_33584(class_2338 arg0)
get(BlockPos pos)
public Optional<PoiDebugData>
getDebugPoiInfo(BlockPos pos)
method_74667(class_2338 arg0)
getDebugData(BlockPos pos)
public void
refresh(Consumer<BiConsumer<BlockPos, Holder<PoiType>>> updater)
method_20353(Consumer<BiConsumer<class_2338, class_6880<class_4158>>> arg0)
updatePointsOfInterest(Consumer<BiConsumer<BlockPos, RegistryEntry<PointOfInterestType>>> updater)
private void
clear()
method_20395()
clear()
boolean
isValid()
method_22444()
isValid()
private void
lambda$refresh$0(it.unimi.dsi.fastutil.shorts.Short2ObjectMap arg0, BlockPos arg1, Holder arg2)
method_20352(it.unimi.dsi.fastutil.shorts.Short2ObjectMap arg0, class_2338 arg1, class_6880 arg2)
method_20352(it.unimi.dsi.fastutil.shorts.Short2ObjectMap arg0, BlockPos pos, RegistryEntry poiEntry)
private PointOfInterest
lambda$refresh$1(BlockPos arg0, Holder arg1, short arg2)
method_20351(class_2338 arg0, class_6880 arg1, short arg2)
method_20351(BlockPos arg0, RegistryEntry arg1, short arg2)
private static Set
lambda$add$0(Holder arg0)
method_19143(class_6880 arg0)
method_19143(RegistryEntry type)
private static Stream
lambda$getRecords$1(Map$Entry arg0)
method_19149(Map$Entry arg0)
method_19149(Map$Entry entry)
private static boolean
lambda$getRecords$0(Predicate arg0, Map$Entry arg1)
method_19151(Predicate arg0, Map$Entry arg1)
method_19151(Predicate arg0, Map$Entry entry)