use of org.terasology.world.WorldProvider 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));
}
Aggregations