net.minecraft.world.chunk.storage

## Interface IChunkLoader

- All Known Implementing Classes:
    AnvilChunkLoader

      public interface IChunkLoader

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `chunkTick()` Called every World.tick()
    `Chunk` | `loadChunk(World world, int i, int j)` Loads the specified(XZ) chunk into the specified world.
    `void` | `saveChunk(World world, Chunk chunk)`
    `void` | `saveExtraChunkData(World world, Chunk chunk)` Save extra data associated with this Chunk not normally saved during autosave, only during chunk unload.
    `void` | `saveExtraData()` Save extra data not associated with any Chunk.

- - ### Method Detail

    - #### loadChunk

          Chunk loadChunk(World world,
                        int i,
                        int j)
                          throws IOException

      Loads the specified(XZ) chunk into the specified world.
      Throws:
        `IOException`

    - #### saveChunk

          void saveChunk(World world,
                       Chunk chunk)
                         throws MinecraftException,
                                IOException

      Throws:
        `MinecraftException`
        `IOException`

    - #### saveExtraChunkData

          void saveExtraChunkData(World world,
                                Chunk chunk)

      Save extra data associated with this Chunk not normally saved during autosave, only during chunk unload. Currently unused.

    - #### chunkTick

          void chunkTick()

      Called every World.tick()

    - #### saveExtraData

          void saveExtraData()

      Save extra data not associated with any Chunk. Not saved during autosave, only during world unload. Currently unused.