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));
}
Aggregations