public World(ChunkSource source) { TimeFactor = 0.02; EntityHandler = new EntityHandler(this); Lighting = new LightingEngine(this); ChunkCache = new ChunkCache(source, new FlatChunkGenerator(Lighting)); ChunkPool = new ActiveChunkPool(this, ChunkCache); }
public ActiveChunkPool(World world, ChunkCache cache) { this.cache = cache; this.world = world; }