Package net.minecraft.src
Class AnvilChunkLoader
java.lang.Object
net.minecraft.src.AnvilChunkLoader
- All Implemented Interfaces:
IChunkLoader,IThreadedFileIO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddChunkToPending(ChunkCoordIntPair par1ChunkCoordIntPair, NBTTagCompound par2NBTTagCompound) protected ChunkcheckedReadChunkFromNBT(World par1World, int par2, int par3, NBTTagCompound par4NBTTagCompound) Wraps readChunkFromNBT.voidCalled every World.tick()Loads the specified(XZ) chunk into the specified world.voidvoidsaveExtraChunkData(World par1World, Chunk par2Chunk) Save extra data associated with this Chunk not normally saved during autosave, only during chunk unload.voidSave extra data not associated with any Chunk.booleanReturns a boolean stating if the write was unsuccessful.
-
Constructor Details
-
AnvilChunkLoader
-
-
Method Details
-
loadChunk
Loads the specified(XZ) chunk into the specified world.- Specified by:
loadChunkin interfaceIChunkLoader- Throws:
IOException
-
checkedReadChunkFromNBT
protected Chunk checkedReadChunkFromNBT(World par1World, int par2, int par3, NBTTagCompound par4NBTTagCompound) Wraps readChunkFromNBT. Checks the coordinates and several NBT tags. -
saveChunk
- Specified by:
saveChunkin interfaceIChunkLoader- Throws:
MinecraftExceptionIOException
-
addChunkToPending
protected void addChunkToPending(ChunkCoordIntPair par1ChunkCoordIntPair, NBTTagCompound par2NBTTagCompound) -
writeNextIO
public boolean writeNextIO()Returns a boolean stating if the write was unsuccessful.- Specified by:
writeNextIOin interfaceIThreadedFileIO
-
saveExtraChunkData
Save extra data associated with this Chunk not normally saved during autosave, only during chunk unload. Currently unused.- Specified by:
saveExtraChunkDatain interfaceIChunkLoader
-
chunkTick
public void chunkTick()Called every World.tick()- Specified by:
chunkTickin interfaceIChunkLoader
-
saveExtraData
public void saveExtraData()Save extra data not associated with any Chunk. Not saved during autosave, only during world unload. Currently unused.- Specified by:
saveExtraDatain interfaceIChunkLoader
-