public class ChunkLoader
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected com.mojang.datafixers.DataFixer |
dataFixer |
private LegacyStructureDataUtil |
field_219167_a |
private IOWorker |
field_227077_a_ |
Constructor and Description |
---|
ChunkLoader(java.io.File regionDirectory,
com.mojang.datafixers.DataFixer dataFixerIn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
func_227079_i_() |
static int |
getDataVersion(CompoundNBT compound) |
CompoundNBT |
readChunk(ChunkPos p_227078_1_) |
CompoundNBT |
updateChunkData(DimensionType p_219166_1_,
java.util.function.Supplier<DimensionSavedDataManager> savedDataManager,
CompoundNBT chunkData) |
void |
writeChunk(ChunkPos pos,
CompoundNBT compound) |
private final IOWorker field_227077_a_
protected final com.mojang.datafixers.DataFixer dataFixer
@Nullable private LegacyStructureDataUtil field_219167_a
public ChunkLoader(java.io.File regionDirectory, com.mojang.datafixers.DataFixer dataFixerIn)
public CompoundNBT updateChunkData(DimensionType p_219166_1_, java.util.function.Supplier<DimensionSavedDataManager> savedDataManager, CompoundNBT chunkData)
public static int getDataVersion(CompoundNBT compound)
@Nullable public CompoundNBT readChunk(ChunkPos p_227078_1_) throws java.io.IOException
java.io.IOException
public void writeChunk(ChunkPos pos, CompoundNBT compound)
public void func_227079_i_()
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException