Class ChunkStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.ChunkStorage
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ChunkMap
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.mojang.datafixers.DataFixer
static final int
private LegacyStructureDataHandler
private final IOWorker
-
Constructor Summary
ConstructorDescriptionChunkStorage
(Path p_196912_, com.mojang.datafixers.DataFixer p_196913_, boolean p_196914_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
private LegacyStructureDataHandler
getLegacyStructureHandler
(ResourceKey<Level> p_223449_, Supplier<DimensionDataStorage> p_223450_) static int
getVersion
(CompoundTag p_63506_) static void
injectDatafixingContext
(CompoundTag p_196919_, ResourceKey<Level> p_196920_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_196921_) boolean
isOldChunkAround
(ChunkPos p_223452_, int p_223453_) upgradeChunkTag
(ResourceKey<Level> p_188289_, Supplier<DimensionDataStorage> p_188290_, CompoundTag p_188291_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_188292_) void
write
(ChunkPos p_63503_, CompoundTag p_63504_)
-
Field Details
-
LAST_MONOLYTH_STRUCTURE_DATA_VERSION
public static final int LAST_MONOLYTH_STRUCTURE_DATA_VERSION- See Also:
-
worker
-
fixerUpper
protected final com.mojang.datafixers.DataFixer fixerUpper -
legacyStructureHandler
-
-
Constructor Details
-
ChunkStorage
-
-
Method Details
-
isOldChunkAround
-
upgradeChunkTag
public CompoundTag upgradeChunkTag(ResourceKey<Level> p_188289_, Supplier<DimensionDataStorage> p_188290_, CompoundTag p_188291_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_188292_) -
getLegacyStructureHandler
private LegacyStructureDataHandler getLegacyStructureHandler(ResourceKey<Level> p_223449_, Supplier<DimensionDataStorage> p_223450_) -
injectDatafixingContext
public static void injectDatafixingContext(CompoundTag p_196919_, ResourceKey<Level> p_196920_, Optional<ResourceKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> p_196921_) -
getVersion
-
read
-
write
-
flushWorker
public void flushWorker() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
chunkScanner
-