Class ChunkLoader
- java.lang.Object
-
- net.minecraft.world.chunk.storage.ChunkLoader
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
ChunkManager
public class ChunkLoader extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description protected com.mojang.datafixers.DataFixer
fixerUpper
private LegacyStructureDataUtil
legacyStructureHandler
private IOWorker
worker
-
Constructor Summary
Constructors Constructor Description ChunkLoader(java.io.File p_i231889_1_, com.mojang.datafixers.DataFixer p_i231889_2_, boolean p_i231889_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flushWorker()
static int
getVersion(CompoundNBT p_219165_0_)
CompoundNBT
read(ChunkPos p_227078_1_)
CompoundNBT
upgradeChunkTag(RegistryKey<World> p_235968_1_, java.util.function.Supplier<DimensionSavedDataManager> p_235968_2_, CompoundNBT p_235968_3_)
void
write(ChunkPos p_219100_1_, CompoundNBT p_219100_2_)
-
-
-
Field Detail
-
worker
private final IOWorker worker
-
fixerUpper
protected final com.mojang.datafixers.DataFixer fixerUpper
-
legacyStructureHandler
@Nullable private LegacyStructureDataUtil legacyStructureHandler
-
-
Method Detail
-
upgradeChunkTag
public CompoundNBT upgradeChunkTag(RegistryKey<World> p_235968_1_, java.util.function.Supplier<DimensionSavedDataManager> p_235968_2_, CompoundNBT p_235968_3_)
-
getVersion
public static int getVersion(CompoundNBT p_219165_0_)
-
read
@Nullable public CompoundNBT read(ChunkPos p_227078_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public void write(ChunkPos p_219100_1_, CompoundNBT p_219100_2_)
-
flushWorker
public void flushWorker()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.io.IOException
-
-