use of org.terasology.engine.world.WorldComponent in project Terasology by MovingBlocks.
the class CreateWorldEntity method createWorldPoolsAndEntity.
private EntityRef createWorldPoolsAndEntity() {
entityManager.createWorldPools(gameManifest);
EntityRef worldEntity = entityManager.create();
worldEntity.addComponent(new WorldComponent());
NetworkComponent networkComponent = new NetworkComponent();
networkComponent.replicateMode = NetworkComponent.ReplicateMode.ALWAYS;
worldEntity.addComponent(networkComponent);
return worldEntity;
}
use of org.terasology.engine.world.WorldComponent in project Terasology by MovingBlocks.
the class CreateRemoteWorldEntity method step.
@Override
public boolean step() {
EntityRef worldEntity = entityManager.create();
worldEntity.addComponent(new WorldComponent());
chunkProvider.setWorldEntity(worldEntity);
return true;
}
Aggregations