Search in sources :

Example 1 with WorldProviderCore

use of org.terasology.engine.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), context.get(ExtraBlockDataManager.class));
    WorldProvider world = new WorldProviderWrapper(stub, context.get(ExtraBlockDataManager.class));
    CoreRegistry.put(WorldProvider.class, world);
    CoreRegistry.put(BlockEntityRegistry.class, new EntityAwareWorldProvider(stub, context));
}
Also used : WorldProviderCore(org.terasology.engine.world.internal.WorldProviderCore) BlockManager(org.terasology.engine.world.block.BlockManager) WorldProviderWrapper(org.terasology.engine.world.internal.WorldProviderWrapper) WorldProvider(org.terasology.engine.world.WorldProvider) EntityAwareWorldProvider(org.terasology.engine.world.internal.EntityAwareWorldProvider) ExtraBlockDataManager(org.terasology.engine.world.chunks.blockdata.ExtraBlockDataManager) EntityAwareWorldProvider(org.terasology.engine.world.internal.EntityAwareWorldProvider)

Aggregations

WorldProvider (org.terasology.engine.world.WorldProvider)1 BlockManager (org.terasology.engine.world.block.BlockManager)1 ExtraBlockDataManager (org.terasology.engine.world.chunks.blockdata.ExtraBlockDataManager)1 EntityAwareWorldProvider (org.terasology.engine.world.internal.EntityAwareWorldProvider)1 WorldProviderCore (org.terasology.engine.world.internal.WorldProviderCore)1 WorldProviderWrapper (org.terasology.engine.world.internal.WorldProviderWrapper)1