public class AnvilChunkLoader extends java.lang.Object implements IChunkLoader, IThreadedFileIO
Modifier and Type | Field and Description |
---|---|
java.io.File |
chunkSaveLocation |
Constructor and Description |
---|
AnvilChunkLoader(java.io.File chunkSaveLocationIn,
DataFixer dataFixerIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
addChunkToPending(ChunkPos pos,
NBTTagCompound compound) |
protected java.lang.Object[] |
checkedReadChunkFromNBT__Async(World worldIn,
int x,
int z,
NBTTagCompound compound) |
protected Chunk |
checkedReadChunkFromNBT(World worldIn,
int x,
int z,
NBTTagCompound compound) |
boolean |
chunkExists(World world,
int x,
int z) |
void |
chunkTick() |
protected static Entity |
createEntityFromNBT(NBTTagCompound compound,
World worldIn) |
boolean |
isChunkGeneratedAt(int p_191063_1_,
int p_191063_2_) |
java.lang.Object[] |
loadChunk__Async(World worldIn,
int x,
int z) |
Chunk |
loadChunk(World worldIn,
int x,
int z) |
void |
loadEntities(World worldIn,
NBTTagCompound compound,
Chunk chunk) |
static Entity |
readChunkEntity(NBTTagCompound compound,
World worldIn,
Chunk chunkIn) |
static Entity |
readWorldEntity(NBTTagCompound compound,
World worldIn,
boolean p_186051_2_) |
static Entity |
readWorldEntityPos(NBTTagCompound compound,
World worldIn,
double x,
double y,
double z,
boolean attemptSpawn) |
static void |
registerFixes(DataFixer fixer) |
void |
saveChunk(World worldIn,
Chunk chunkIn) |
void |
saveExtraChunkData(World worldIn,
Chunk chunkIn) |
void |
saveExtraData() |
static void |
spawnEntity(Entity entityIn,
World worldIn) |
boolean |
writeNextIO() |
public AnvilChunkLoader(java.io.File chunkSaveLocationIn, DataFixer dataFixerIn)
public boolean chunkExists(World world, int x, int z)
@Nullable public Chunk loadChunk(World worldIn, int x, int z) throws java.io.IOException
loadChunk
in interface IChunkLoader
java.io.IOException
public java.lang.Object[] loadChunk__Async(World worldIn, int x, int z) throws java.io.IOException
java.io.IOException
public boolean isChunkGeneratedAt(int p_191063_1_, int p_191063_2_)
isChunkGeneratedAt
in interface IChunkLoader
@Nullable protected Chunk checkedReadChunkFromNBT(World worldIn, int x, int z, NBTTagCompound compound)
protected java.lang.Object[] checkedReadChunkFromNBT__Async(World worldIn, int x, int z, NBTTagCompound compound)
public void saveChunk(World worldIn, Chunk chunkIn) throws MinecraftException, java.io.IOException
saveChunk
in interface IChunkLoader
MinecraftException
java.io.IOException
protected void addChunkToPending(ChunkPos pos, NBTTagCompound compound)
public boolean writeNextIO()
writeNextIO
in interface IThreadedFileIO
public void saveExtraChunkData(World worldIn, Chunk chunkIn) throws java.io.IOException
saveExtraChunkData
in interface IChunkLoader
java.io.IOException
public void chunkTick()
chunkTick
in interface IChunkLoader
public void saveExtraData()
saveExtraData
in interface IChunkLoader
public static void registerFixes(DataFixer fixer)
public void loadEntities(World worldIn, NBTTagCompound compound, Chunk chunk)
@Nullable public static Entity readChunkEntity(NBTTagCompound compound, World worldIn, Chunk chunkIn)
@Nullable public static Entity readWorldEntityPos(NBTTagCompound compound, World worldIn, double x, double y, double z, boolean attemptSpawn)
@Nullable protected static Entity createEntityFromNBT(NBTTagCompound compound, World worldIn)
@Nullable public static Entity readWorldEntity(NBTTagCompound compound, World worldIn, boolean p_186051_2_)