public void CoInitialize() { _grassId = Blocks.Register(new BlockType("Grass", true, false, true, 2)); _rockId = Blocks.Register(new BlockType("Rock", true, false, true, 2)); _dirtId = Blocks.Register(new BlockType("Dirt", true, false, true, 2)); _sandId = Blocks.Register(new BlockType("Sand", true, false, true, 2)); _waterId = Blocks.Register(new BlockType("Water", false, true, false, 2)); Chunk.SetGenerator(WorldGen.Generator); StaticChunkPool.Register("Main.RockChunk", new Chunk(new BlockData(_rockId))); StaticChunkPool.Register("Main.WaterChunk", new Chunk(new BlockData(_waterId))); EventBus.AddCollection(this); }