Search in sources :

Example 1 with WorldProviderCore

use of org.terasology.world.internal.WorldProviderCore in project Terasology by MovingBlocks.

the class WorldProvidingHeadlessEnvironment method setupWorldProvider.

public void setupWorldProvider(WorldGenerator generator) {
    generator.initialize();
    WorldProviderCore stub = new MapWorldProvider(generator, context.get(BlockManager.class), Mockito.mock(BiomeManager.class));
    WorldProvider world = new WorldProviderWrapper(stub);
    CoreRegistry.put(WorldProvider.class, world);
    CoreRegistry.put(BlockEntityRegistry.class, new EntityAwareWorldProvider(stub, context));
}
Also used : BiomeManager(org.terasology.world.biomes.BiomeManager) WorldProviderCore(org.terasology.world.internal.WorldProviderCore) BlockManager(org.terasology.world.block.BlockManager) WorldProviderWrapper(org.terasology.world.internal.WorldProviderWrapper) WorldProvider(org.terasology.world.WorldProvider) EntityAwareWorldProvider(org.terasology.world.internal.EntityAwareWorldProvider) EntityAwareWorldProvider(org.terasology.world.internal.EntityAwareWorldProvider)

Aggregations

WorldProvider (org.terasology.world.WorldProvider)1 BiomeManager (org.terasology.world.biomes.BiomeManager)1 BlockManager (org.terasology.world.block.BlockManager)1 EntityAwareWorldProvider (org.terasology.world.internal.EntityAwareWorldProvider)1 WorldProviderCore (org.terasology.world.internal.WorldProviderCore)1 WorldProviderWrapper (org.terasology.world.internal.WorldProviderWrapper)1