Package net.minecraft.world.poi
Class PointOfInterestStorage
java.lang.Object
net.minecraft.world.storage.SerializingRegionBasedStorage<PointOfInterestSet>
net.minecraft.world.poi.PointOfInterestStorage
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name official bdn
intermediary net/minecraft/class_4153
named net/minecraft/world/poi/PointOfInterestStorage
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
private final class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
private final PointOfInterestStorage.PointOfInterestDistanceTracker
private final LongSet
Fields inherited from class net.minecraft.world.storage.SerializingRegionBasedStorage
world
-
Constructor Summary
ConstructorDescriptionPointOfInterestStorage
(File directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync, HeightLimitView world) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(BlockPos pos, PointOfInterestType type) long
count
(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) int
getInChunk
(Predicate<PointOfInterestType> predicate, ChunkPos chunkPos, PointOfInterestStorage.OccupationStatus occupationStatus) getInCircle
(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) getInSquare
(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) getNearestPosition
(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) getPosition
(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> positionPredicate, BlockPos pos, int radius) getPosition
(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) getPosition
(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> positionPredicate, PointOfInterestStorage.OccupationStatus occupationStatus, BlockPos pos, int radius, Random random) getPositions
(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) getSortedPositions
(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) boolean
hasTypeAt
(PointOfInterestType type, BlockPos pos) void
initForPalette
(ChunkPos chunkPos, ChunkSection chunkSection) (package private) boolean
isOccupied
(long pos) method_34712
(Predicate<PointOfInterestType> predicate, Predicate<BlockPos> predicate2, BlockPos blockPos, int int2, PointOfInterestStorage.OccupationStatus occupationStatus) int
method_35155
(BlockPos blockPos) Deprecated.protected void
onLoad
(long pos) protected void
onUpdate
(long pos) void
preloadChunks
(WorldView world, BlockPos pos, int radius) Preloads chunks in a square area with the given radius.boolean
releaseTicket
(BlockPos pos) void
private void
scanAndPopulate
(ChunkSection chunkSection, ChunkSectionPos chunkSectionPos, BiConsumer<BlockPos, PointOfInterestType> biConsumer) private static boolean
shouldScan
(ChunkSection chunkSection) boolean
test
(BlockPos pos, Predicate<PointOfInterestType> predicate) void
tick
(BooleanSupplier shouldKeepTicking) Methods inherited from class net.minecraft.world.storage.SerializingRegionBasedStorage
close, get, getIfLoaded, getOrCreate, isPosInvalid, saveChunk
-
Field Details
-
field_30265
public static final int field_30265- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbdn;a:I
intermediary field_30265
Lnet/minecraft/class_4153;field_30265:I
named field_30265
Lnet/minecraft/world/poi/PointOfInterestStorage;field_30265:I
-
field_30266
public static final int field_30266- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lbdn;b:I
intermediary field_30266
Lnet/minecraft/class_4153;field_30266:I
named field_30266
Lnet/minecraft/world/poi/PointOfInterestStorage;field_30266:I
-
pointOfInterestDistanceTracker
- Mappings:
Namespace Name Mixin selector official d
Lbdn;d:Lbdn$a;
intermediary field_18484
Lnet/minecraft/class_4153;field_18484:Lnet/minecraft/class_4153$class_4154;
named pointOfInterestDistanceTracker
Lnet/minecraft/world/poi/PointOfInterestStorage;pointOfInterestDistanceTracker:Lnet/minecraft/world/poi/PointOfInterestStorage$PointOfInterestDistanceTracker;
-
preloadedChunks
- Mappings:
Namespace Name Mixin selector official e
Lbdn;e:Lit/unimi/dsi/fastutil/longs/LongSet;
intermediary field_20688
Lnet/minecraft/class_4153;field_20688:Lit/unimi/dsi/fastutil/longs/LongSet;
named preloadedChunks
Lnet/minecraft/world/poi/PointOfInterestStorage;preloadedChunks:Lit/unimi/dsi/fastutil/longs/LongSet;
-
-
Constructor Details
-
PointOfInterestStorage
public PointOfInterestStorage(File directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync, HeightLimitView world) - Mappings:
Namespace Name Mixin selector official <init>
Lbdn;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;ZLbws;)V
intermediary <init>
Lnet/minecraft/class_4153;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;ZLnet/minecraft/class_5539;)V
named <init>
Lnet/minecraft/world/poi/PointOfInterestStorage;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;ZLnet/minecraft/world/HeightLimitView;)V
-
-
Method Details
-
add
- Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Lgg;Lbdq;)V
intermediary method_19115
Lnet/minecraft/class_4153;method_19115(Lnet/minecraft/class_2338;Lnet/minecraft/class_4158;)V
named add
Lnet/minecraft/world/poi/PointOfInterestStorage;add(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/poi/PointOfInterestType;)V
-
remove
- Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Lgg;)V
intermediary method_19112
Lnet/minecraft/class_4153;method_19112(Lnet/minecraft/class_2338;)V
named remove
Lnet/minecraft/world/poi/PointOfInterestStorage;remove(Lnet/minecraft/util/math/BlockPos;)V
-
count
public long count(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) - Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Ljava/util/function/Predicate;Lgg;ILbdn$b;)J
intermediary method_20252
Lnet/minecraft/class_4153;method_20252(Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)J
named count
Lnet/minecraft/world/poi/PointOfInterestStorage;count(Ljava/util/function/Predicate;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;)J
-
hasTypeAt
- Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Lbdq;Lgg;)Z
intermediary method_26339
Lnet/minecraft/class_4153;method_26339(Lnet/minecraft/class_4158;Lnet/minecraft/class_2338;)Z
named hasTypeAt
Lnet/minecraft/world/poi/PointOfInterestStorage;hasTypeAt(Lnet/minecraft/world/poi/PointOfInterestType;Lnet/minecraft/util/math/BlockPos;)Z
-
getInSquare
public Stream<PointOfInterest> getInSquare(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) - Mappings:
Namespace Name Mixin selector official b
Lbdn;b(Ljava/util/function/Predicate;Lgg;ILbdn$b;)Ljava/util/stream/Stream;
intermediary method_22383
Lnet/minecraft/class_4153;method_22383(Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
named getInSquare
Lnet/minecraft/world/poi/PointOfInterestStorage;getInSquare(Ljava/util/function/Predicate;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;)Ljava/util/stream/Stream;
-
getInCircle
public Stream<PointOfInterest> getInCircle(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) - Mappings:
Namespace Name Mixin selector official c
Lbdn;c(Ljava/util/function/Predicate;Lgg;ILbdn$b;)Ljava/util/stream/Stream;
intermediary method_19125
Lnet/minecraft/class_4153;method_19125(Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
named getInCircle
Lnet/minecraft/world/poi/PointOfInterestStorage;getInCircle(Ljava/util/function/Predicate;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;)Ljava/util/stream/Stream;
-
getInChunk
public Stream<PointOfInterest> getInChunk(Predicate<PointOfInterestType> predicate, ChunkPos chunkPos, PointOfInterestStorage.OccupationStatus occupationStatus) - Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Ljava/util/function/Predicate;Lbvv;Lbdn$b;)Ljava/util/stream/Stream;
intermediary method_19123
Lnet/minecraft/class_4153;method_19123(Ljava/util/function/Predicate;Lnet/minecraft/class_1923;Lnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
named getInChunk
Lnet/minecraft/world/poi/PointOfInterestStorage;getInChunk(Ljava/util/function/Predicate;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;)Ljava/util/stream/Stream;
-
getPositions
public Stream<BlockPos> getPositions(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) - Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lgg;ILbdn$b;)Ljava/util/stream/Stream;
intermediary method_21647
Lnet/minecraft/class_4153;method_21647(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
named getPositions
Lnet/minecraft/world/poi/PointOfInterestStorage;getPositions(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;)Ljava/util/stream/Stream;
-
getSortedPositions
public Stream<BlockPos> getSortedPositions(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) - Mappings:
Namespace Name Mixin selector official b
Lbdn;b(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lgg;ILbdn$b;)Ljava/util/stream/Stream;
intermediary method_30957
Lnet/minecraft/class_4153;method_30957(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)Ljava/util/stream/Stream;
named getSortedPositions
Lnet/minecraft/world/poi/PointOfInterestStorage;getSortedPositions(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;)Ljava/util/stream/Stream;
-
getPosition
public Optional<BlockPos> getPosition(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> posPredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) - Mappings:
Namespace Name Mixin selector official c
Lbdn;c(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lgg;ILbdn$b;)Ljava/util/Optional;
intermediary method_19127
Lnet/minecraft/class_4153;method_19127(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)Ljava/util/Optional;
named getPosition
Lnet/minecraft/world/poi/PointOfInterestStorage;getPosition(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;)Ljava/util/Optional;
-
getNearestPosition
public Optional<BlockPos> getNearestPosition(Predicate<PointOfInterestType> typePredicate, BlockPos pos, int radius, PointOfInterestStorage.OccupationStatus occupationStatus) - Mappings:
Namespace Name Mixin selector official d
Lbdn;d(Ljava/util/function/Predicate;Lgg;ILbdn$b;)Ljava/util/Optional;
intermediary method_20006
Lnet/minecraft/class_4153;method_20006(Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)Ljava/util/Optional;
named getNearestPosition
Lnet/minecraft/world/poi/PointOfInterestStorage;getNearestPosition(Ljava/util/function/Predicate;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;)Ljava/util/Optional;
-
method_34712
public Optional<BlockPos> method_34712(Predicate<PointOfInterestType> predicate, Predicate<BlockPos> predicate2, BlockPos blockPos, int int2, PointOfInterestStorage.OccupationStatus occupationStatus) - Mappings:
Namespace Name Mixin selector official d
Lbdn;d(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lgg;ILbdn$b;)Ljava/util/Optional;
intermediary method_34712
Lnet/minecraft/class_4153;method_34712(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/class_2338;ILnet/minecraft/class_4153$class_4155;)Ljava/util/Optional;
named method_34712
Lnet/minecraft/world/poi/PointOfInterestStorage;method_34712(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/util/math/BlockPos;ILnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;)Ljava/util/Optional;
-
getPosition
public Optional<BlockPos> getPosition(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> positionPredicate, BlockPos pos, int radius) - Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lgg;I)Ljava/util/Optional;
intermediary method_19126
Lnet/minecraft/class_4153;method_19126(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/class_2338;I)Ljava/util/Optional;
named getPosition
Lnet/minecraft/world/poi/PointOfInterestStorage;getPosition(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/util/math/BlockPos;I)Ljava/util/Optional;
-
getPosition
public Optional<BlockPos> getPosition(Predicate<PointOfInterestType> typePredicate, Predicate<BlockPos> positionPredicate, PointOfInterestStorage.OccupationStatus occupationStatus, BlockPos pos, int radius, Random random) - Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lbdn$b;Lgg;ILjava/util/Random;)Ljava/util/Optional;
intermediary method_20005
Lnet/minecraft/class_4153;method_20005(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/class_4153$class_4155;Lnet/minecraft/class_2338;ILjava/util/Random;)Ljava/util/Optional;
named getPosition
Lnet/minecraft/world/poi/PointOfInterestStorage;getPosition(Ljava/util/function/Predicate;Ljava/util/function/Predicate;Lnet/minecraft/world/poi/PointOfInterestStorage$OccupationStatus;Lnet/minecraft/util/math/BlockPos;ILjava/util/Random;)Ljava/util/Optional;
-
releaseTicket
- Mappings:
Namespace Name Mixin selector official b
Lbdn;b(Lgg;)Z
intermediary method_19129
Lnet/minecraft/class_4153;method_19129(Lnet/minecraft/class_2338;)Z
named releaseTicket
Lnet/minecraft/world/poi/PointOfInterestStorage;releaseTicket(Lnet/minecraft/util/math/BlockPos;)Z
-
test
- Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Lgg;Ljava/util/function/Predicate;)Z
intermediary method_19116
Lnet/minecraft/class_4153;method_19116(Lnet/minecraft/class_2338;Ljava/util/function/Predicate;)Z
named test
Lnet/minecraft/world/poi/PointOfInterestStorage;test(Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;)Z
-
getType
- Mappings:
Namespace Name Mixin selector official c
Lbdn;c(Lgg;)Ljava/util/Optional;
intermediary method_19132
Lnet/minecraft/class_4153;method_19132(Lnet/minecraft/class_2338;)Ljava/util/Optional;
named getType
Lnet/minecraft/world/poi/PointOfInterestStorage;getType(Lnet/minecraft/util/math/BlockPos;)Ljava/util/Optional;
-
method_35155
Deprecated.- Mappings:
Namespace Name Mixin selector official d
Lbdn;d(Lgg;)I
intermediary method_35155
Lnet/minecraft/class_4153;method_35155(Lnet/minecraft/class_2338;)I
named method_35155
Lnet/minecraft/world/poi/PointOfInterestStorage;method_35155(Lnet/minecraft/util/math/BlockPos;)I
-
getDistanceFromNearestOccupied
- Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Lgz;)I
intermediary method_19118
Lnet/minecraft/class_4153;method_19118(Lnet/minecraft/class_4076;)I
named getDistanceFromNearestOccupied
Lnet/minecraft/world/poi/PointOfInterestStorage;getDistanceFromNearestOccupied(Lnet/minecraft/util/math/ChunkSectionPos;)I
-
isOccupied
boolean isOccupied(long pos) - Mappings:
Namespace Name Mixin selector official g
Lbdn;g(J)Z
intermediary method_19133
Lnet/minecraft/class_4153;method_19133(J)Z
named isOccupied
Lnet/minecraft/world/poi/PointOfInterestStorage;isOccupied(J)Z
-
tick
- Overrides:
tick
in classSerializingRegionBasedStorage<PointOfInterestSet>
- Mappings:
Namespace Name Mixin selector official a
Lcns;a(Ljava/util/function/BooleanSupplier;)V
intermediary method_19290
Lnet/minecraft/class_4180;method_19290(Ljava/util/function/BooleanSupplier;)V
named tick
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;tick(Ljava/util/function/BooleanSupplier;)V
-
onUpdate
protected void onUpdate(long pos) - Overrides:
onUpdate
in classSerializingRegionBasedStorage<PointOfInterestSet>
- Mappings:
Namespace Name Mixin selector official a
Lcns;a(J)V
intermediary method_19288
Lnet/minecraft/class_4180;method_19288(J)V
named onUpdate
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;onUpdate(J)V
-
onLoad
protected void onLoad(long pos) - Overrides:
onLoad
in classSerializingRegionBasedStorage<PointOfInterestSet>
- Mappings:
Namespace Name Mixin selector official b
Lcns;b(J)V
intermediary method_19291
Lnet/minecraft/class_4180;method_19291(J)V
named onLoad
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;onLoad(J)V
-
initForPalette
- Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Lbvv;Lcmy;)V
intermediary method_19510
Lnet/minecraft/class_4153;method_19510(Lnet/minecraft/class_1923;Lnet/minecraft/class_2826;)V
named initForPalette
Lnet/minecraft/world/poi/PointOfInterestStorage;initForPalette(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/chunk/ChunkSection;)V
-
shouldScan
- Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Lcmy;)Z
intermediary method_20345
Lnet/minecraft/class_4153;method_20345(Lnet/minecraft/class_2826;)Z
named shouldScan
Lnet/minecraft/world/poi/PointOfInterestStorage;shouldScan(Lnet/minecraft/world/chunk/ChunkSection;)Z
-
scanAndPopulate
private void scanAndPopulate(ChunkSection chunkSection, ChunkSectionPos chunkSectionPos, BiConsumer<BlockPos, PointOfInterestType> biConsumer) - Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Lcmy;Lgz;Ljava/util/function/BiConsumer;)V
intermediary method_20348
Lnet/minecraft/class_4153;method_20348(Lnet/minecraft/class_2826;Lnet/minecraft/class_4076;Ljava/util/function/BiConsumer;)V
named scanAndPopulate
Lnet/minecraft/world/poi/PointOfInterestStorage;scanAndPopulate(Lnet/minecraft/world/chunk/ChunkSection;Lnet/minecraft/util/math/ChunkSectionPos;Ljava/util/function/BiConsumer;)V
-
preloadChunks
Preloads chunks in a square area with the given radius. Loads the chunks withChunkStatus.EMPTY
.- Parameters:
radius
- the radius in blocks- Mappings:
Namespace Name Mixin selector official a
Lbdn;a(Lbwt;Lgg;I)V
intermediary method_22439
Lnet/minecraft/class_4153;method_22439(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;I)V
named preloadChunks
Lnet/minecraft/world/poi/PointOfInterestStorage;preloadChunks(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;I)V
-