Package net.minecraft.world.storage
Class SerializingRegionBasedStorage<R>
java.lang.Object
net.minecraft.world.storage.SerializingRegionBasedStorage<R>
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
PointOfInterestStorage
- Mappings:
Namespace Name official cyq
intermediary net/minecraft/class_4180
named net/minecraft/world/storage/SerializingRegionBasedStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.datafixers.DataFixer
private final DataFixTypes
private final DynamicRegistryManager
private final Long2ObjectMap<Optional<R>>
private static final Logger
private static final String
private final LongLinkedOpenHashSet
private final StorageIoWorker
protected final HeightLimitView
-
Constructor Summary
ConstructorsConstructorDescriptionSerializingRegionBasedStorage
(Path path, Function<Runnable, com.mojang.serialization.Codec<R>> codecFactory, Function<Runnable, R> factory, com.mojang.datafixers.DataFixer dataFixer, DataFixTypes dataFixTypes, boolean dsync, DynamicRegistryManager dynamicRegistryManager, HeightLimitView world) -
Method Summary
Modifier and TypeMethodDescriptionprivate static long
chunkSectionPosAsLong
(ChunkPos chunkPos, int y) void
close()
get
(long pos) private static int
getDataVersion
(com.mojang.serialization.Dynamic<?> dynamic) getIfLoaded
(long pos) protected R
getOrCreate
(long pos) boolean
protected boolean
isPosInvalid
(long pos) private void
loadDataAt
(ChunkPos pos) private CompletableFuture<Optional<NbtCompound>>
protected void
onLoad
(long pos) protected void
onUpdate
(long pos) private void
void
private <T> com.mojang.serialization.Dynamic<T>
protected void
tick
(BooleanSupplier shouldKeepTicking) private <T> void
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lcyq;a:Lorg/slf4j/Logger;
intermediary field_18691
Lnet/minecraft/class_4180;field_18691:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;LOGGER:Lorg/slf4j/Logger;
-
SECTIONS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lcyq;b:Ljava/lang/String;
intermediary field_31427
Lnet/minecraft/class_4180;field_31427:Ljava/lang/String;
named SECTIONS_KEY
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;SECTIONS_KEY:Ljava/lang/String;
-
worker
- Mappings:
Namespace Name Mixin selector official d
Lcyq;d:Lcyl;
intermediary field_21505
Lnet/minecraft/class_4180;field_21505:Lnet/minecraft/class_4698;
named worker
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;worker:Lnet/minecraft/world/storage/StorageIoWorker;
-
loadedElements
- Mappings:
Namespace Name Mixin selector official e
Lcyq;e:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
intermediary field_18692
Lnet/minecraft/class_4180;field_18692:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
named loadedElements
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;loadedElements:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
unsavedElements
- Mappings:
Namespace Name Mixin selector official f
Lcyq;f:Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
intermediary field_18693
Lnet/minecraft/class_4180;field_18693:Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
named unsavedElements
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;unsavedElements:Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
-
codecFactory
- Mappings:
Namespace Name Mixin selector official g
Lcyq;g:Ljava/util/function/Function;
intermediary field_24750
Lnet/minecraft/class_4180;field_24750:Ljava/util/function/Function;
named codecFactory
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;codecFactory:Ljava/util/function/Function;
-
factory
- Mappings:
Namespace Name Mixin selector official h
Lcyq;h:Ljava/util/function/Function;
intermediary field_18695
Lnet/minecraft/class_4180;field_18695:Ljava/util/function/Function;
named factory
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;factory:Ljava/util/function/Function;
-
dataFixer
private final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector official i
Lcyq;i:Lcom/mojang/datafixers/DataFixer;
intermediary field_19228
Lnet/minecraft/class_4180;field_19228:Lcom/mojang/datafixers/DataFixer;
named dataFixer
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;dataFixer:Lcom/mojang/datafixers/DataFixer;
-
dataFixTypes
- Mappings:
Namespace Name Mixin selector official j
Lcyq;j:Lani;
intermediary field_19229
Lnet/minecraft/class_4180;field_19229:Lnet/minecraft/class_4284;
named dataFixTypes
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;dataFixTypes:Lnet/minecraft/datafixer/DataFixTypes;
-
dynamicRegistryManager
- Mappings:
Namespace Name Mixin selector official k
Lcyq;k:Lhn;
intermediary field_39315
Lnet/minecraft/class_4180;field_39315:Lnet/minecraft/class_5455;
named dynamicRegistryManager
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;dynamicRegistryManager:Lnet/minecraft/util/registry/DynamicRegistryManager;
-
world
- Mappings:
Namespace Name Mixin selector official c
Lcyq;c:Lcgz;
intermediary field_27240
Lnet/minecraft/class_4180;field_27240:Lnet/minecraft/class_5539;
named world
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;world:Lnet/minecraft/world/HeightLimitView;
-
-
Constructor Details
-
SerializingRegionBasedStorage
public SerializingRegionBasedStorage(Path path, Function<Runnable, com.mojang.serialization.Codec<R>> codecFactory, Function<Runnable, R> factory, com.mojang.datafixers.DataFixer dataFixer, DataFixTypes dataFixTypes, boolean dsync, DynamicRegistryManager dynamicRegistryManager, HeightLimitView world) - Mappings:
Namespace Name Mixin selector official <init>
Lcyq;<init>(Ljava/nio/file/Path;Ljava/util/function/Function;Ljava/util/function/Function;Lcom/mojang/datafixers/DataFixer;Lani;ZLhn;Lcgz;)V
intermediary <init>
Lnet/minecraft/class_4180;<init>(Ljava/nio/file/Path;Ljava/util/function/Function;Ljava/util/function/Function;Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/class_4284;ZLnet/minecraft/class_5455;Lnet/minecraft/class_5539;)V
named <init>
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;<init>(Ljava/nio/file/Path;Ljava/util/function/Function;Ljava/util/function/Function;Lcom/mojang/datafixers/DataFixer;Lnet/minecraft/datafixer/DataFixTypes;ZLnet/minecraft/util/registry/DynamicRegistryManager;Lnet/minecraft/world/HeightLimitView;)V
-
-
Method Details
-
tick
- Mappings:
Namespace Name Mixin selector official a
Lcyq;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
-
hasUnsavedElements
public boolean hasUnsavedElements()- Mappings:
Namespace Name Mixin selector official a
Lcyq;a()Z
intermediary method_40020
Lnet/minecraft/class_4180;method_40020()Z
named hasUnsavedElements
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;hasUnsavedElements()Z
-
getIfLoaded
- Mappings:
Namespace Name Mixin selector official c
Lcyq;c(J)Ljava/util/Optional;
intermediary method_19293
Lnet/minecraft/class_4180;method_19293(J)Ljava/util/Optional;
named getIfLoaded
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;getIfLoaded(J)Ljava/util/Optional;
-
get
- Mappings:
Namespace Name Mixin selector official d
Lcyq;d(J)Ljava/util/Optional;
intermediary method_19294
Lnet/minecraft/class_4180;method_19294(J)Ljava/util/Optional;
named get
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;get(J)Ljava/util/Optional;
-
isPosInvalid
protected boolean isPosInvalid(long pos) - Mappings:
Namespace Name Mixin selector official e
Lcyq;e(J)Z
intermediary method_19292
Lnet/minecraft/class_4180;method_19292(J)Z
named isPosInvalid
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;isPosInvalid(J)Z
-
getOrCreate
- Mappings:
Namespace Name Mixin selector official f
Lcyq;f(J)Ljava/lang/Object;
intermediary method_19295
Lnet/minecraft/class_4180;method_19295(J)Ljava/lang/Object;
named getOrCreate
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;getOrCreate(J)Ljava/lang/Object;
-
loadDataAt
- Mappings:
Namespace Name Mixin selector official b
Lcyq;b(Lcge;)V
intermediary method_19289
Lnet/minecraft/class_4180;method_19289(Lnet/minecraft/class_1923;)V
named loadDataAt
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;loadDataAt(Lnet/minecraft/util/math/ChunkPos;)V
-
loadNbt
- Mappings:
Namespace Name Mixin selector official c
Lcyq;c(Lcge;)Ljava/util/concurrent/CompletableFuture;
intermediary method_20621
Lnet/minecraft/class_4180;method_20621(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
named loadNbt
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;loadNbt(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
-
update
- Mappings:
Namespace Name Mixin selector official a
Lcyq;a(Lcge;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)V
intermediary method_20368
Lnet/minecraft/class_4180;method_20368(Lnet/minecraft/class_1923;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)V
named update
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;update(Lnet/minecraft/util/math/ChunkPos;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)V
-
save
- Mappings:
Namespace Name Mixin selector official d
Lcyq;d(Lcge;)V
intermediary method_20370
Lnet/minecraft/class_4180;method_20370(Lnet/minecraft/class_1923;)V
named save
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;save(Lnet/minecraft/util/math/ChunkPos;)V
-
serialize
private <T> com.mojang.serialization.Dynamic<T> serialize(ChunkPos chunkPos, com.mojang.serialization.DynamicOps<T> ops) - Mappings:
Namespace Name Mixin selector official a
Lcyq;a(Lcge;Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Dynamic;
intermediary method_20367
Lnet/minecraft/class_4180;method_20367(Lnet/minecraft/class_1923;Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Dynamic;
named serialize
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;serialize(Lnet/minecraft/util/math/ChunkPos;Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Dynamic;
-
chunkSectionPosAsLong
- Mappings:
Namespace Name Mixin selector official a
Lcyq;a(Lcge;I)J
intermediary method_33637
Lnet/minecraft/class_4180;method_33637(Lnet/minecraft/class_1923;I)J
named chunkSectionPosAsLong
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;chunkSectionPosAsLong(Lnet/minecraft/util/math/ChunkPos;I)J
-
onLoad
protected void onLoad(long pos) - Mappings:
Namespace Name Mixin selector official b
Lcyq;b(J)V
intermediary method_19291
Lnet/minecraft/class_4180;method_19291(J)V
named onLoad
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;onLoad(J)V
-
onUpdate
protected void onUpdate(long pos) - Mappings:
Namespace Name Mixin selector official a
Lcyq;a(J)V
intermediary method_19288
Lnet/minecraft/class_4180;method_19288(J)V
named onUpdate
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;onUpdate(J)V
-
getDataVersion
private static int getDataVersion(com.mojang.serialization.Dynamic<?> dynamic) - Mappings:
Namespace Name Mixin selector official a
Lcyq;a(Lcom/mojang/serialization/Dynamic;)I
intermediary method_20369
Lnet/minecraft/class_4180;method_20369(Lcom/mojang/serialization/Dynamic;)I
named getDataVersion
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;getDataVersion(Lcom/mojang/serialization/Dynamic;)I
-
saveChunk
- Mappings:
Namespace Name Mixin selector official a
Lcyq;a(Lcge;)V
intermediary method_20436
Lnet/minecraft/class_4180;method_20436(Lnet/minecraft/class_1923;)V
named saveChunk
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;saveChunk(Lnet/minecraft/util/math/ChunkPos;)V
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-