Class SimpleRegionStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.SimpleRegionStorage
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ChunkMap,RecreatingSimpleRegionStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DataFixTypesprivate final com.mojang.datafixers.DataFixerprivate final Supplier<LegacyTagFixer> private final IOWorker -
Constructor Summary
ConstructorsConstructorDescriptionSimpleRegionStorage(RegionStorageInfo pInfo, Path pFolder, com.mojang.datafixers.DataFixer pFixerUpper, boolean pSync, DataFixTypes pDataFixType) SimpleRegionStorage(RegionStorageInfo pInfo, Path pFolder, com.mojang.datafixers.DataFixer pFixerUpper, boolean pSync, DataFixTypes pDataFixType, Supplier<LegacyTagFixer> pLegacyFixer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static voidinjectDatafixingContext(CompoundTag pTag, @Nullable CompoundTag pContext) booleanisOldChunkAround(ChunkPos pChunkPos, int pRadius) protected voidmarkChunkDone(ChunkPos pChunkPos) private static voidsynchronize(boolean pFlushStorage) com.mojang.serialization.Dynamic<Tag> upgradeChunkTag(com.mojang.serialization.Dynamic<Tag> pTag, int pVersion) upgradeChunkTag(CompoundTag pTag, int pVersion) upgradeChunkTag(CompoundTag pTag, int pVersion, @Nullable CompoundTag pContext) write(ChunkPos pChunkPos, Supplier<CompoundTag> pDataSupplier) write(ChunkPos pChunkPos, CompoundTag pData)
-
Field Details
-
worker
-
fixerUpper
private final com.mojang.datafixers.DataFixer fixerUpper -
dataFixType
-
legacyFixer
-
-
Constructor Details
-
SimpleRegionStorage
public SimpleRegionStorage(RegionStorageInfo pInfo, Path pFolder, com.mojang.datafixers.DataFixer pFixerUpper, boolean pSync, DataFixTypes pDataFixType) -
SimpleRegionStorage
public SimpleRegionStorage(RegionStorageInfo pInfo, Path pFolder, com.mojang.datafixers.DataFixer pFixerUpper, boolean pSync, DataFixTypes pDataFixType, Supplier<LegacyTagFixer> pLegacyFixer)
-
-
Method Details
-
isOldChunkAround
-
read
-
write
-
write
-
upgradeChunkTag
-
upgradeChunkTag
-
upgradeChunkTag
-
injectDatafixingContext
-
removeDatafixingContext
-
markChunkDone
-
synchronize
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
chunkScanner
-
storageInfo
-