Search in sources :

Example 11 with BlockManagerImpl

use of org.terasology.engine.world.block.internal.BlockManagerImpl in project Terasology by MovingBlocks.

the class ProcessBlockPrefabs method step.

@Override
public boolean step() {
    BlockManagerImpl blockManager = (BlockManagerImpl) context.get(BlockManager.class);
    blockManager.subscribe(new BlockPrefabManager(context.get(EntityManager.class), blockManager));
    return true;
}
Also used : BlockManager(org.terasology.engine.world.block.BlockManager) BlockPrefabManager(org.terasology.engine.world.block.internal.BlockPrefabManager) BlockManagerImpl(org.terasology.engine.world.block.internal.BlockManagerImpl)

Aggregations

BlockManagerImpl (org.terasology.engine.world.block.internal.BlockManagerImpl)11 NullWorldAtlas (org.terasology.engine.world.block.tiles.NullWorldAtlas)8 BeforeEach (org.junit.jupiter.api.BeforeEach)7 AssetManager (org.terasology.gestalt.assets.management.AssetManager)7 BlockUri (org.terasology.engine.world.block.BlockUri)6 BlockFamilyDefinitionData (org.terasology.engine.world.block.loader.BlockFamilyDefinitionData)6 ResourceUrn (org.terasology.gestalt.assets.ResourceUrn)6 ExtraBlockDataManager (org.terasology.engine.world.chunks.blockdata.ExtraBlockDataManager)4 BlockFamilyTypeHandler (org.terasology.engine.persistence.typeHandling.extensionTypes.BlockFamilyTypeHandler)2 BlockTypeHandler (org.terasology.engine.persistence.typeHandling.extensionTypes.BlockTypeHandler)2 BlockManager (org.terasology.engine.world.block.BlockManager)2 WorldAtlas (org.terasology.engine.world.block.tiles.WorldAtlas)2 SunlightPropagationRules (org.terasology.engine.world.propagation.light.SunlightPropagationRules)2 SunlightRegenPropagationRules (org.terasology.engine.world.propagation.light.SunlightRegenPropagationRules)2 TypeHandlerLibrary (org.terasology.persistence.typeHandling.TypeHandlerLibrary)2 Vector3i (org.joml.Vector3i)1 Vector3ic (org.joml.Vector3ic)1 Config (org.terasology.engine.config.Config)1 ModuleManager (org.terasology.engine.core.module.ModuleManager)1 NetworkSystem (org.terasology.engine.network.NetworkSystem)1