public class ChunkSerializer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
ChunkSerializer() |
Modifier and Type | Method and Description |
---|---|
static ChunkStatus.Type |
getChunkStatus(CompoundNBT chunkNBT) |
static ChunkPrimer |
read(ServerWorld worldIn,
TemplateManager templateManagerIn,
PointOfInterestManager poiManager,
ChunkPos pos,
CompoundNBT compound) |
private static void |
readEntities(CompoundNBT compound,
Chunk chunkIn) |
static ListNBT |
toNbt(it.unimi.dsi.fastutil.shorts.ShortList[] list) |
private static java.util.Map<java.lang.String,it.unimi.dsi.fastutil.longs.LongSet> |
unpackStructureReferences(ChunkPos p_227075_0_,
CompoundNBT p_227075_1_) |
private static java.util.Map<java.lang.String,StructureStart> |
unpackStructureStart(ChunkGenerator<?> p_227076_0_,
TemplateManager p_227076_1_,
CompoundNBT p_227076_2_) |
static CompoundNBT |
write(ServerWorld worldIn,
IChunk chunkIn) |
private static CompoundNBT |
writeStructures(ChunkPos pos,
java.util.Map<java.lang.String,StructureStart> p_222649_1_,
java.util.Map<java.lang.String,it.unimi.dsi.fastutil.longs.LongSet> p_222649_2_) |
public static ChunkPrimer read(ServerWorld worldIn, TemplateManager templateManagerIn, PointOfInterestManager poiManager, ChunkPos pos, CompoundNBT compound)
public static CompoundNBT write(ServerWorld worldIn, IChunk chunkIn)
public static ChunkStatus.Type getChunkStatus(@Nullable CompoundNBT chunkNBT)
private static void readEntities(CompoundNBT compound, Chunk chunkIn)
private static CompoundNBT writeStructures(ChunkPos pos, java.util.Map<java.lang.String,StructureStart> p_222649_1_, java.util.Map<java.lang.String,it.unimi.dsi.fastutil.longs.LongSet> p_222649_2_)
private static java.util.Map<java.lang.String,StructureStart> unpackStructureStart(ChunkGenerator<?> p_227076_0_, TemplateManager p_227076_1_, CompoundNBT p_227076_2_)
private static java.util.Map<java.lang.String,it.unimi.dsi.fastutil.longs.LongSet> unpackStructureReferences(ChunkPos p_227075_0_, CompoundNBT p_227075_1_)
public static ListNBT toNbt(it.unimi.dsi.fastutil.shorts.ShortList[] list)