Search in sources :

Example 11 with WorldProvider

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));
}
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)11 BlockManager (org.terasology.world.block.BlockManager)5 Biome (org.terasology.world.biomes.Biome)4 BiomeManager (org.terasology.world.biomes.BiomeManager)4 ModuleManager (org.terasology.engine.module.ModuleManager)3 Vector3i (org.terasology.math.geom.Vector3i)3 NetData (org.terasology.protobuf.NetData)3 Block (org.terasology.world.block.Block)3 EntityAwareWorldProvider (org.terasology.world.internal.EntityAwareWorldProvider)3 WorldInfo (org.terasology.world.internal.WorldInfo)3 WorldProviderWrapper (org.terasology.world.internal.WorldProviderWrapper)3 ComponentSystemManager (org.terasology.engine.ComponentSystemManager)2 RenderingSubsystemFactory (org.terasology.engine.subsystem.RenderingSubsystemFactory)2 EngineEntityManager (org.terasology.entitySystem.entity.internal.EngineEntityManager)2 LocalPlayer (org.terasology.logic.players.LocalPlayer)2 Module (org.terasology.module.Module)2 ModuleEnvironment (org.terasology.module.ModuleEnvironment)2 NetworkSystem (org.terasology.network.NetworkSystem)2 BackdropProvider (org.terasology.rendering.backdrop.BackdropProvider)2 BackdropRenderer (org.terasology.rendering.backdrop.BackdropRenderer)2