package appeng.spatial; import java.util.ArrayList; import java.util.List; import net.minecraft.entity.EnumCreatureType; import net.minecraft.world.World; import net.minecraft.world.chunk.Chunk; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.ChunkProviderGenerate; public class StorageChunkProvider extends ChunkProviderGenerate implements IChunkProvider { World w; public StorageChunkProvider(World wrd, long i) { super( wrd, i, false ); this.w = wrd; } @Override public boolean unloadQueuedChunks() { return true; } @Override public Chunk provideChunk(int x, int z) { Chunk chunk = new Chunk( w, x, z ); if ( !chunk.isTerrainPopulated ) { chunk.isTerrainPopulated = true; chunk.resetRelightChecks(); } return chunk; } @Override public void populate(IChunkProvider par1iChunkProvider, int par2, int par3) { } @Override public List getPossibleCreatures(EnumCreatureType a, int b, int c, int d) { return new ArrayList(); } }