001 package net.minecraft.src;
002
003 import java.io.IOException;
004
005 public interface IChunkLoader
006 {
007 /**
008 * Loads the specified(XZ) chunk into the specified world.
009 */
010 Chunk loadChunk(World var1, int var2, int var3) throws IOException;
011
012 void saveChunk(World var1, Chunk var2) throws MinecraftException, IOException;
013
014 /**
015 * Save extra data associated with this Chunk not normally saved during autosave, only during chunk unload.
016 * Currently unused.
017 */
018 void saveExtraChunkData(World var1, Chunk var2);
019
020 /**
021 * Called every World.tick()
022 */
023 void chunkTick();
024
025 /**
026 * Save extra data not associated with any Chunk. Not saved during autosave, only during world unload. Currently
027 * unused.
028 */
029 void saveExtraData();
030 }