package appeng.spatial; import java.util.ArrayList; import java.util.List; import net.minecraft.entity.EnumCreatureType; import net.minecraft.world.ChunkPosition; 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) { byte[] data = new byte[32768]; Chunk chunk = new Chunk( w, data, 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(); } @Override public ChunkPosition findClosestStructure(World par1World, String par2Str, int par3, int par4, int par5) { return null; } }