Search in sources :

Example 1 with BlockEntityRegistry

use of org.terasology.world.BlockEntityRegistry in project Terasology by MovingBlocks.

the class InitialiseSystems method step.

@Override
public boolean step() {
    EngineEntityManager entityManager = (EngineEntityManager) context.get(EntityManager.class);
    EventLibrary eventLibrary = context.get(EventLibrary.class);
    BlockEntityRegistry blockEntityRegistry = context.get(BlockEntityRegistry.class);
    context.get(NetworkSystem.class).connectToEntitySystem(entityManager, eventLibrary, blockEntityRegistry);
    ComponentSystemManager csm = context.get(ComponentSystemManager.class);
    csm.initialise();
    return true;
}
Also used : EngineEntityManager(org.terasology.entitySystem.entity.internal.EngineEntityManager) EngineEntityManager(org.terasology.entitySystem.entity.internal.EngineEntityManager) EntityManager(org.terasology.entitySystem.entity.EntityManager) EventLibrary(org.terasology.entitySystem.metadata.EventLibrary) NetworkSystem(org.terasology.network.NetworkSystem) BlockEntityRegistry(org.terasology.world.BlockEntityRegistry) ComponentSystemManager(org.terasology.engine.ComponentSystemManager)

Aggregations

ComponentSystemManager (org.terasology.engine.ComponentSystemManager)1 EntityManager (org.terasology.entitySystem.entity.EntityManager)1 EngineEntityManager (org.terasology.entitySystem.entity.internal.EngineEntityManager)1 EventLibrary (org.terasology.entitySystem.metadata.EventLibrary)1 NetworkSystem (org.terasology.network.NetworkSystem)1 BlockEntityRegistry (org.terasology.world.BlockEntityRegistry)1