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 named net/minecraft/world/storage/SerializingRegionBasedStorage
intermediary net/minecraft/class_4180
official dvq
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Long2ObjectMap
<Optional<R>> private static final Logger
private final DynamicRegistryManager
private static final String
private final ChunkPosKeyedStorage
private final LongLinkedOpenHashSet
protected final HeightLimitView
-
Constructor Summary
ConstructorDescriptionSerializingRegionBasedStorage
(ChunkPosKeyedStorage storageAccess, Function<Runnable, com.mojang.serialization.Codec<R>> codecFactory, Function<Runnable, R> factory, DynamicRegistryManager registryManager, 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 void
update
(ChunkPos pos, RegistryOps<NbtElement> ops, @Nullable NbtCompound nbt)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;LOGGER:Lorg/slf4j/Logger;
intermediary field_18691
Lnet/minecraft/class_4180;field_18691:Lorg/slf4j/Logger;
official a
Ldvq;a:Lorg/slf4j/Logger;
-
SECTIONS_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named SECTIONS_KEY
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;SECTIONS_KEY:Ljava/lang/String;
intermediary field_31427
Lnet/minecraft/class_4180;field_31427:Ljava/lang/String;
official b
Ldvq;b:Ljava/lang/String;
-
storageAccess
- Mappings:
Namespace Name Mixin selector named storageAccess
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;storageAccess:Lnet/minecraft/world/storage/ChunkPosKeyedStorage;
intermediary field_48759
Lnet/minecraft/class_4180;field_48759:Lnet/minecraft/class_9172;
official d
Ldvq;d:Ldvr;
-
loadedElements
- Mappings:
Namespace Name Mixin selector named loadedElements
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;loadedElements:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
intermediary field_18692
Lnet/minecraft/class_4180;field_18692:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
official e
Ldvq;e:Lit/unimi/dsi/fastutil/longs/Long2ObjectMap;
-
unsavedElements
- Mappings:
Namespace Name Mixin selector named unsavedElements
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;unsavedElements:Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
intermediary field_18693
Lnet/minecraft/class_4180;field_18693:Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
official f
Ldvq;f:Lit/unimi/dsi/fastutil/longs/LongLinkedOpenHashSet;
-
codecFactory
- Mappings:
Namespace Name Mixin selector named codecFactory
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;codecFactory:Ljava/util/function/Function;
intermediary field_24750
Lnet/minecraft/class_4180;field_24750:Ljava/util/function/Function;
official g
Ldvq;g:Ljava/util/function/Function;
-
factory
- Mappings:
Namespace Name Mixin selector named factory
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;factory:Ljava/util/function/Function;
intermediary field_18695
Lnet/minecraft/class_4180;field_18695:Ljava/util/function/Function;
official h
Ldvq;h:Ljava/util/function/Function;
-
registryManager
- Mappings:
Namespace Name Mixin selector named registryManager
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;registryManager:Lnet/minecraft/registry/DynamicRegistryManager;
intermediary field_39315
Lnet/minecraft/class_4180;field_39315:Lnet/minecraft/class_5455;
official i
Ldvq;i:Ljw;
-
world
- Mappings:
Namespace Name Mixin selector named world
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;world:Lnet/minecraft/world/HeightLimitView;
intermediary field_27240
Lnet/minecraft/class_4180;field_27240:Lnet/minecraft/class_5539;
official c
Ldvq;c:Ldcb;
-
-
Constructor Details
-
SerializingRegionBasedStorage
public SerializingRegionBasedStorage(ChunkPosKeyedStorage storageAccess, Function<Runnable, com.mojang.serialization.Codec<R>> codecFactory, Function<Runnable, R> factory, DynamicRegistryManager registryManager, HeightLimitView world) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;<init>(Lnet/minecraft/world/storage/ChunkPosKeyedStorage;Ljava/util/function/Function;Ljava/util/function/Function;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/world/HeightLimitView;)V
intermediary <init>
Lnet/minecraft/class_4180;<init>(Lnet/minecraft/class_9172;Ljava/util/function/Function;Ljava/util/function/Function;Lnet/minecraft/class_5455;Lnet/minecraft/class_5539;)V
official <init>
Ldvq;<init>(Ldvr;Ljava/util/function/Function;Ljava/util/function/Function;Ljw;Ldcb;)V
-
-
Method Details
-
tick
- Mappings:
Namespace Name Mixin selector named tick
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;tick(Ljava/util/function/BooleanSupplier;)V
intermediary method_19290
Lnet/minecraft/class_4180;method_19290(Ljava/util/function/BooleanSupplier;)V
official a
Ldvq;a(Ljava/util/function/BooleanSupplier;)V
-
hasUnsavedElements
public boolean hasUnsavedElements()- Mappings:
Namespace Name Mixin selector named hasUnsavedElements
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;hasUnsavedElements()Z
intermediary method_40020
Lnet/minecraft/class_4180;method_40020()Z
official a
Ldvq;a()Z
-
getIfLoaded
- Mappings:
Namespace Name Mixin selector named getIfLoaded
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;getIfLoaded(J)Ljava/util/Optional;
intermediary method_19293
Lnet/minecraft/class_4180;method_19293(J)Ljava/util/Optional;
official c
Ldvq;c(J)Ljava/util/Optional;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;get(J)Ljava/util/Optional;
intermediary method_19294
Lnet/minecraft/class_4180;method_19294(J)Ljava/util/Optional;
official d
Ldvq;d(J)Ljava/util/Optional;
-
isPosInvalid
protected boolean isPosInvalid(long pos) - Mappings:
Namespace Name Mixin selector named isPosInvalid
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;isPosInvalid(J)Z
intermediary method_19292
Lnet/minecraft/class_4180;method_19292(J)Z
official e
Ldvq;e(J)Z
-
getOrCreate
- Mappings:
Namespace Name Mixin selector named getOrCreate
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;getOrCreate(J)Ljava/lang/Object;
intermediary method_19295
Lnet/minecraft/class_4180;method_19295(J)Ljava/lang/Object;
official f
Ldvq;f(J)Ljava/lang/Object;
-
loadDataAt
- Mappings:
Namespace Name Mixin selector named loadDataAt
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;loadDataAt(Lnet/minecraft/util/math/ChunkPos;)V
intermediary method_19289
Lnet/minecraft/class_4180;method_19289(Lnet/minecraft/class_1923;)V
official b
Ldvq;b(Ldbg;)V
-
loadNbt
- Mappings:
Namespace Name Mixin selector named loadNbt
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;loadNbt(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
intermediary method_20621
Lnet/minecraft/class_4180;method_20621(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
official c
Ldvq;c(Ldbg;)Ljava/util/concurrent/CompletableFuture;
-
update
- Mappings:
Namespace Name Mixin selector named update
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;update(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/registry/RegistryOps;Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_20368
Lnet/minecraft/class_4180;method_20368(Lnet/minecraft/class_1923;Lnet/minecraft/class_6903;Lnet/minecraft/class_2487;)V
official a
Ldvq;a(Ldbg;Lald;Lus;)V
-
save
- Mappings:
Namespace Name Mixin selector named save
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;save(Lnet/minecraft/util/math/ChunkPos;)V
intermediary method_20370
Lnet/minecraft/class_4180;method_20370(Lnet/minecraft/class_1923;)V
official d
Ldvq;d(Ldbg;)V
-
serialize
private <T> com.mojang.serialization.Dynamic<T> serialize(ChunkPos chunkPos, com.mojang.serialization.DynamicOps<T> ops) - Mappings:
Namespace Name Mixin selector named serialize
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;serialize(Lnet/minecraft/util/math/ChunkPos;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;
official a
Ldvq;a(Ldbg;Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Dynamic;
-
chunkSectionPosAsLong
- Mappings:
Namespace Name Mixin selector named chunkSectionPosAsLong
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;chunkSectionPosAsLong(Lnet/minecraft/util/math/ChunkPos;I)J
intermediary method_33637
Lnet/minecraft/class_4180;method_33637(Lnet/minecraft/class_1923;I)J
official a
Ldvq;a(Ldbg;I)J
-
onLoad
protected void onLoad(long pos) - Mappings:
Namespace Name Mixin selector named onLoad
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;onLoad(J)V
intermediary method_19291
Lnet/minecraft/class_4180;method_19291(J)V
official b
Ldvq;b(J)V
-
onUpdate
protected void onUpdate(long pos) - Mappings:
Namespace Name Mixin selector named onUpdate
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;onUpdate(J)V
intermediary method_19288
Lnet/minecraft/class_4180;method_19288(J)V
official a
Ldvq;a(J)V
-
getDataVersion
private static int getDataVersion(com.mojang.serialization.Dynamic<?> dynamic) - Mappings:
Namespace Name Mixin selector named getDataVersion
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;getDataVersion(Lcom/mojang/serialization/Dynamic;)I
intermediary method_20369
Lnet/minecraft/class_4180;method_20369(Lcom/mojang/serialization/Dynamic;)I
official a
Ldvq;a(Lcom/mojang/serialization/Dynamic;)I
-
saveChunk
- Mappings:
Namespace Name Mixin selector named saveChunk
Lnet/minecraft/world/storage/SerializingRegionBasedStorage;saveChunk(Lnet/minecraft/util/math/ChunkPos;)V
intermediary method_20436
Lnet/minecraft/class_4180;method_20436(Lnet/minecraft/class_1923;)V
official a
Ldvq;a(Ldbg;)V
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-