Class ChunkLoader
java.lang.Object
net.minecraft.world.chunk.storage.ChunkLoader
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ChunkManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.mojang.datafixers.DataFixer
private LegacyStructureDataUtil
private final IOWorker
-
Constructor Summary
ConstructorDescriptionChunkLoader
(File p_i231889_1_, com.mojang.datafixers.DataFixer p_i231889_2_, boolean p_i231889_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
static int
getVersion
(CompoundNBT p_219165_0_) upgradeChunkTag
(RegistryKey<World> p_235968_1_, Supplier<DimensionSavedDataManager> p_235968_2_, CompoundNBT p_235968_3_) void
write
(ChunkPos p_219100_1_, CompoundNBT p_219100_2_)
-
Field Details
-
worker
-
fixerUpper
protected final com.mojang.datafixers.DataFixer fixerUpper -
legacyStructureHandler
-
-
Constructor Details
-
ChunkLoader
public ChunkLoader(File p_i231889_1_, com.mojang.datafixers.DataFixer p_i231889_2_, boolean p_i231889_3_)
-
-
Method Details
-
upgradeChunkTag
public CompoundNBT upgradeChunkTag(RegistryKey<World> p_235968_1_, Supplier<DimensionSavedDataManager> p_235968_2_, CompoundNBT p_235968_3_) -
getVersion
-
read
- Throws:
IOException
-
write
-
flushWorker
public void flushWorker() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-