Search in sources :

Example 1 with BlockFamilyDefinition

use of org.terasology.world.block.loader.BlockFamilyDefinition in project Terasology by MovingBlocks.

the class BlockCommands method replaceBlock.

@Command(shortDescription = "Replaces a block in front of user", helpText = "Replaces a block in front of the user at the specified max distance", runOnServer = true, requiredPermission = PermissionManager.CHEAT_PERMISSION)
public void replaceBlock(@Sender EntityRef sender, @CommandParam("blockName") String uri, @CommandParam(value = "maxDistance", required = false) Integer maxDistanceParam) {
    int maxDistance = maxDistanceParam != null ? maxDistanceParam : 12;
    EntityRef playerEntity = sender.getComponent(ClientComponent.class).character;
    EntityRef gazeEntity = GazeAuthoritySystem.getGazeEntityForCharacter(playerEntity);
    LocationComponent gazeLocation = gazeEntity.getComponent(LocationComponent.class);
    Set<ResourceUrn> matchingUris = Assets.resolveAssetUri(uri, BlockFamilyDefinition.class);
    targetSystem.updateTarget(gazeLocation.getWorldPosition(), gazeLocation.getWorldDirection(), maxDistance);
    EntityRef target = targetSystem.getTarget();
    BlockComponent targetLocation = target.getComponent(BlockComponent.class);
    if (matchingUris.size() == 1) {
        Optional<BlockFamilyDefinition> def = Assets.get(matchingUris.iterator().next(), BlockFamilyDefinition.class);
        if (def.isPresent()) {
            BlockFamily blockFamily = blockManager.getBlockFamily(uri);
            Block block = blockManager.getBlock(blockFamily.getURI());
            world.setBlock(targetLocation.getPosition(), block);
        } else if (matchingUris.size() > 1) {
            StringBuilder builder = new StringBuilder();
            builder.append("Non-unique shape name, possible matches: ");
            Iterator<ResourceUrn> shapeUris = sortItems(matchingUris).iterator();
            while (shapeUris.hasNext()) {
                builder.append(shapeUris.next().toString());
                if (shapeUris.hasNext()) {
                    builder.append(", ");
                }
            }
        }
    }
}
Also used : ClientComponent(org.terasology.network.ClientComponent) LocationComponent(org.terasology.logic.location.LocationComponent) BlockComponent(org.terasology.world.block.BlockComponent) Iterator(java.util.Iterator) Block(org.terasology.world.block.Block) BlockFamily(org.terasology.world.block.family.BlockFamily) ResourceUrn(org.terasology.assets.ResourceUrn) BlockFamilyDefinition(org.terasology.world.block.loader.BlockFamilyDefinition) EntityRef(org.terasology.entitySystem.entity.EntityRef) Command(org.terasology.logic.console.commandSystem.annotations.Command)

Example 2 with BlockFamilyDefinition

use of org.terasology.world.block.loader.BlockFamilyDefinition in project Terasology by MovingBlocks.

the class BlockCommands method giveBlock.

/**
 * Called by 'give' command in ItemCommands.java to attempt to put a block in the player's inventory when no item is found.
 * Called by 'giveBulkBlock' command in BlockCommands.java to put a block in the player's inventory.
 * @return Null if not found, otherwise success or warning message
 */
public String giveBlock(@Sender EntityRef sender, @CommandParam("blockName") String uri, @CommandParam(value = "quantity", required = false) Integer quantityParam, @CommandParam(value = "shapeName", required = false) String shapeUriParam) {
    Set<ResourceUrn> matchingUris = Assets.resolveAssetUri(uri, BlockFamilyDefinition.class);
    BlockFamily blockFamily = null;
    if (matchingUris.size() == 1) {
        Optional<BlockFamilyDefinition> def = Assets.get(matchingUris.iterator().next(), BlockFamilyDefinition.class);
        if (def.isPresent()) {
            if (def.get().isFreeform()) {
                if (shapeUriParam == null) {
                    blockFamily = blockManager.getBlockFamily(new BlockUri(def.get().getUrn(), new ResourceUrn("engine:cube")));
                } else {
                    Set<ResourceUrn> resolvedShapeUris = Assets.resolveAssetUri(shapeUriParam, BlockShape.class);
                    if (resolvedShapeUris.isEmpty()) {
                        return "Found block. No shape found for '" + shapeUriParam + "'";
                    } else if (resolvedShapeUris.size() > 1) {
                        StringBuilder builder = new StringBuilder();
                        builder.append("Found block. Non-unique shape name, possible matches: ");
                        Iterator<ResourceUrn> shapeUris = sortItems(resolvedShapeUris).iterator();
                        while (shapeUris.hasNext()) {
                            builder.append(shapeUris.next().toString());
                            if (shapeUris.hasNext()) {
                                builder.append(", ");
                            }
                        }
                        return builder.toString();
                    }
                    blockFamily = blockManager.getBlockFamily(new BlockUri(def.get().getUrn(), resolvedShapeUris.iterator().next()));
                }
            } else {
                blockFamily = blockManager.getBlockFamily(new BlockUri(def.get().getUrn()));
            }
        }
        if (blockFamily == null) {
            // Should never be reached
            return "Block not found";
        }
        int defaultQuantity = blockFamily.getArchetypeBlock().isStackable() ? 16 : 1;
        int quantity = quantityParam != null ? quantityParam : defaultQuantity;
        return giveBlock(blockFamily, quantity, sender);
    } else if (matchingUris.size() > 1) {
        StringBuilder builder = new StringBuilder();
        builder.append("Non-unique block name, possible matches: ");
        Joiner.on(", ").appendTo(builder, matchingUris);
        return builder.toString();
    }
    return null;
}
Also used : BlockUri(org.terasology.world.block.BlockUri) Iterator(java.util.Iterator) BlockFamily(org.terasology.world.block.family.BlockFamily) ResourceUrn(org.terasology.assets.ResourceUrn) BlockFamilyDefinition(org.terasology.world.block.loader.BlockFamilyDefinition)

Example 3 with BlockFamilyDefinition

use of org.terasology.world.block.loader.BlockFamilyDefinition in project Terasology by MovingBlocks.

the class BlockManagerImpl method loadFamily.

private Optional<BlockFamily> loadFamily(BlockUri uri) {
    Optional<BlockFamilyDefinition> familyDef = assetManager.getAsset(uri.getBlockFamilyDefinitionUrn(), BlockFamilyDefinition.class);
    if (familyDef.isPresent() && familyDef.get().isLoadable()) {
        if (familyDef.get().isFreeform()) {
            ResourceUrn shapeUrn;
            if (uri.getShapeUrn().isPresent()) {
                shapeUrn = uri.getShapeUrn().get();
            } else {
                shapeUrn = CUBE_SHAPE_URN;
            }
            Optional<BlockShape> shape = assetManager.getAsset(shapeUrn, BlockShape.class);
            if (shape.isPresent()) {
                return Optional.of(familyDef.get().createFamily(shape.get(), blockBuilder));
            }
        } else if (!familyDef.get().isFreeform()) {
            return Optional.of(familyDef.get().createFamily(blockBuilder));
        }
    } else {
        logger.error("Family not available: {}", uri);
    }
    return Optional.empty();
}
Also used : BlockShape(org.terasology.world.block.shapes.BlockShape) BlockFamilyDefinition(org.terasology.world.block.loader.BlockFamilyDefinition) ResourceUrn(org.terasology.assets.ResourceUrn)

Example 4 with BlockFamilyDefinition

use of org.terasology.world.block.loader.BlockFamilyDefinition in project Terasology by MovingBlocks.

the class TerasologyEngine method initAssets.

private void initAssets() {
    DefaultBlockFamilyFactoryRegistry familyFactoryRegistry = new DefaultBlockFamilyFactoryRegistry();
    rootContext.put(BlockFamilyFactoryRegistry.class, familyFactoryRegistry);
    // cast lambdas explicitly to avoid inconsistent compiler behavior wrt. type inference
    assetTypeManager.registerCoreAssetType(Prefab.class, (AssetFactory<Prefab, PrefabData>) PojoPrefab::new, false, "prefabs");
    assetTypeManager.registerCoreAssetType(BlockShape.class, (AssetFactory<BlockShape, BlockShapeData>) BlockShapeImpl::new, "shapes");
    assetTypeManager.registerCoreAssetType(BlockSounds.class, (AssetFactory<BlockSounds, BlockSoundsData>) BlockSounds::new, "blockSounds");
    assetTypeManager.registerCoreAssetType(BlockTile.class, (AssetFactory<BlockTile, TileData>) BlockTile::new, "blockTiles");
    assetTypeManager.registerCoreAssetType(BlockFamilyDefinition.class, (AssetFactory<BlockFamilyDefinition, BlockFamilyDefinitionData>) BlockFamilyDefinition::new, "blocks");
    assetTypeManager.registerCoreFormat(BlockFamilyDefinition.class, new BlockFamilyDefinitionFormat(assetTypeManager.getAssetManager(), familyFactoryRegistry));
    assetTypeManager.registerCoreAssetType(UISkin.class, (AssetFactory<UISkin, UISkinData>) UISkin::new, "skins");
    assetTypeManager.registerCoreAssetType(BehaviorTree.class, (AssetFactory<BehaviorTree, BehaviorTreeData>) BehaviorTree::new, false, "behaviors");
    assetTypeManager.registerCoreAssetType(UIElement.class, (AssetFactory<UIElement, UIData>) UIElement::new, "ui");
    for (EngineSubsystem subsystem : allSubsystems) {
        subsystem.registerCoreAssetTypes(assetTypeManager);
    }
}
Also used : UIElement(org.terasology.rendering.nui.asset.UIElement) PrefabData(org.terasology.entitySystem.prefab.PrefabData) BehaviorTreeData(org.terasology.logic.behavior.asset.BehaviorTreeData) BlockShape(org.terasology.world.block.shapes.BlockShape) BlockFamilyDefinitionFormat(org.terasology.world.block.loader.BlockFamilyDefinitionFormat) UISkin(org.terasology.rendering.nui.skin.UISkin) UISkinData(org.terasology.rendering.nui.skin.UISkinData) BlockTile(org.terasology.world.block.tiles.BlockTile) DefaultBlockFamilyFactoryRegistry(org.terasology.world.block.family.DefaultBlockFamilyFactoryRegistry) BehaviorTree(org.terasology.logic.behavior.asset.BehaviorTree) BlockShapeData(org.terasology.world.block.shapes.BlockShapeData) UIData(org.terasology.rendering.nui.asset.UIData) BlockSounds(org.terasology.world.block.sounds.BlockSounds) BlockSoundsData(org.terasology.world.block.sounds.BlockSoundsData) TileData(org.terasology.world.block.tiles.TileData) BlockFamilyDefinitionData(org.terasology.world.block.loader.BlockFamilyDefinitionData) EngineSubsystem(org.terasology.engine.subsystem.EngineSubsystem) BlockFamilyDefinition(org.terasology.world.block.loader.BlockFamilyDefinition) Prefab(org.terasology.entitySystem.prefab.Prefab) PojoPrefab(org.terasology.entitySystem.prefab.internal.PojoPrefab)

Example 5 with BlockFamilyDefinition

use of org.terasology.world.block.loader.BlockFamilyDefinition in project Terasology by MovingBlocks.

the class HeadlessEnvironment method setupAssetManager.

@Override
protected AssetManager setupAssetManager() {
    ModuleAwareAssetTypeManager assetTypeManager = new ModuleAwareAssetTypeManager();
    // cast lambdas explicitly to avoid inconsistent compiler behavior wrt. type inference
    assetTypeManager.registerCoreAssetType(Prefab.class, (AssetFactory<Prefab, PrefabData>) PojoPrefab::new, false, "prefabs");
    assetTypeManager.registerCoreAssetType(BlockShape.class, (AssetFactory<BlockShape, BlockShapeData>) BlockShapeImpl::new, "shapes");
    assetTypeManager.registerCoreAssetType(BlockSounds.class, (AssetFactory<BlockSounds, BlockSoundsData>) BlockSounds::new, "blockSounds");
    assetTypeManager.registerCoreAssetType(BlockTile.class, (AssetFactory<BlockTile, TileData>) BlockTile::new, "blockTiles");
    assetTypeManager.registerCoreAssetType(BlockFamilyDefinition.class, (AssetFactory<BlockFamilyDefinition, BlockFamilyDefinitionData>) BlockFamilyDefinition::new, "blocks");
    assetTypeManager.registerCoreAssetType(StaticSound.class, NullSound::new, "sounds");
    assetTypeManager.registerCoreAssetType(StreamingSound.class, NullStreamingSound::new, "music");
    DefaultBlockFamilyFactoryRegistry blockFamilyFactoryRegistry = new DefaultBlockFamilyFactoryRegistry();
    blockFamilyFactoryRegistry.setBlockFamilyFactory("horizontal", new HorizontalBlockFamilyFactory());
    blockFamilyFactoryRegistry.setBlockFamilyFactory("alignToSurface", new AttachedToSurfaceFamilyFactory());
    assetTypeManager.registerCoreFormat(BlockFamilyDefinition.class, new BlockFamilyDefinitionFormat(assetTypeManager.getAssetManager(), blockFamilyFactoryRegistry));
    assetTypeManager.registerCoreAssetType(UISkin.class, (AssetFactory<UISkin, UISkinData>) UISkin::new, "skins");
    assetTypeManager.registerCoreAssetType(BehaviorTree.class, (AssetFactory<BehaviorTree, BehaviorTreeData>) BehaviorTree::new, false, "behaviors");
    assetTypeManager.registerCoreAssetType(UIElement.class, (AssetFactory<UIElement, UIData>) UIElement::new, "ui");
    assetTypeManager.registerCoreAssetType(Font.class, (AssetFactory<Font, FontData>) FontImpl::new, "fonts");
    assetTypeManager.registerCoreAssetType(Texture.class, (AssetFactory<Texture, TextureData>) HeadlessTexture::new, "textures", "fonts");
    assetTypeManager.registerCoreFormat(Texture.class, new PNGTextureFormat(Texture.FilterMode.NEAREST, path -> path.getName(2).toString().equals("textures")));
    assetTypeManager.registerCoreFormat(Texture.class, new PNGTextureFormat(Texture.FilterMode.LINEAR, path -> path.getName(2).toString().equals("fonts")));
    assetTypeManager.registerCoreAssetType(Shader.class, (AssetFactory<Shader, ShaderData>) HeadlessShader::new, "shaders");
    assetTypeManager.registerCoreAssetType(Material.class, (AssetFactory<Material, MaterialData>) HeadlessMaterial::new, "materials");
    assetTypeManager.registerCoreAssetType(Mesh.class, (AssetFactory<Mesh, MeshData>) HeadlessMesh::new, "mesh");
    assetTypeManager.registerCoreAssetType(SkeletalMesh.class, (AssetFactory<SkeletalMesh, SkeletalMeshData>) HeadlessSkeletalMesh::new, "skeletalMesh");
    assetTypeManager.registerCoreAssetType(MeshAnimation.class, (AssetFactory<MeshAnimation, MeshAnimationData>) MeshAnimationImpl::new, "animations");
    assetTypeManager.registerCoreAssetType(Atlas.class, (AssetFactory<Atlas, AtlasData>) Atlas::new, "atlas");
    assetTypeManager.registerCoreAssetType(Subtexture.class, (AssetFactory<Subtexture, SubtextureData>) Subtexture::new);
    assetTypeManager.switchEnvironment(context.get(ModuleManager.class).getEnvironment());
    context.put(ModuleAwareAssetTypeManager.class, assetTypeManager);
    context.put(AssetManager.class, assetTypeManager.getAssetManager());
    return assetTypeManager.getAssetManager();
}
Also used : PNGTextureFormat(org.terasology.rendering.assets.texture.PNGTextureFormat) TypeSerializationLibrary(org.terasology.persistence.typeHandling.TypeSerializationLibrary) MeshData(org.terasology.rendering.assets.mesh.MeshData) UIElement(org.terasology.rendering.nui.asset.UIElement) HeadlessMaterial(org.terasology.engine.subsystem.headless.assets.HeadlessMaterial) CelestialSystem(org.terasology.world.sun.CelestialSystem) AssetManager(org.terasology.assets.management.AssetManager) Time(org.terasology.engine.Time) Config(org.terasology.config.Config) BehaviorTreeData(org.terasology.logic.behavior.asset.BehaviorTreeData) BlockTile(org.terasology.world.block.tiles.BlockTile) FontData(org.terasology.rendering.assets.font.FontData) Material(org.terasology.rendering.assets.material.Material) PNGTextureFormat(org.terasology.rendering.assets.texture.PNGTextureFormat) NullStreamingSound(org.terasology.audio.nullAudio.NullStreamingSound) PrefabData(org.terasology.entitySystem.prefab.PrefabData) EngineTime(org.terasology.engine.EngineTime) WorldAtlas(org.terasology.world.block.tiles.WorldAtlas) Path(java.nio.file.Path) TileData(org.terasology.world.block.tiles.TileData) AudioManager(org.terasology.audio.AudioManager) Set(java.util.Set) ReadWriteStorageManager(org.terasology.persistence.internal.ReadWriteStorageManager) BlockShapeImpl(org.terasology.world.block.shapes.BlockShapeImpl) UISkinData(org.terasology.rendering.nui.skin.UISkinData) NullAudioManager(org.terasology.audio.nullAudio.NullAudioManager) EntitySystemSetupUtil(org.terasology.engine.bootstrap.EntitySystemSetupUtil) AttachedToSurfaceFamilyFactory(org.terasology.world.block.family.AttachedToSurfaceFamilyFactory) CollisionGroupTypeHandler(org.terasology.persistence.typeHandling.extensionTypes.CollisionGroupTypeHandler) HeadlessMesh(org.terasology.engine.subsystem.headless.assets.HeadlessMesh) BlockFamilyDefinitionFormat(org.terasology.world.block.loader.BlockFamilyDefinitionFormat) ModuleManagerFactory(org.terasology.testUtil.ModuleManagerFactory) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) NullWorldAtlas(org.terasology.world.block.tiles.NullWorldAtlas) Subtexture(org.terasology.rendering.assets.texture.subtexture.Subtexture) Mockito.mock(org.mockito.Mockito.mock) BlockManager(org.terasology.world.block.BlockManager) Prefab(org.terasology.entitySystem.prefab.Prefab) UISkin(org.terasology.rendering.nui.skin.UISkin) Mesh(org.terasology.rendering.assets.mesh.Mesh) Shader(org.terasology.rendering.assets.shader.Shader) NetworkSystemImpl(org.terasology.network.internal.NetworkSystemImpl) BlockFamilyDefinition(org.terasology.world.block.loader.BlockFamilyDefinition) BlockTypeHandler(org.terasology.persistence.typeHandling.extensionTypes.BlockTypeHandler) PojoPrefab(org.terasology.entitySystem.prefab.internal.PojoPrefab) Name(org.terasology.naming.Name) ModuleManager(org.terasology.engine.module.ModuleManager) ShrinkWrap(org.jboss.shrinkwrap.api.ShrinkWrap) StaticSound(org.terasology.audio.StaticSound) MeshAnimationImpl(org.terasology.rendering.assets.animation.MeshAnimationImpl) SkeletalMeshData(org.terasology.rendering.assets.skeletalmesh.SkeletalMeshData) DefaultCelestialSystem(org.terasology.world.sun.DefaultCelestialSystem) StreamingSound(org.terasology.audio.StreamingSound) IOException(java.io.IOException) FontImpl(org.terasology.rendering.assets.font.FontImpl) EngineEntityManager(org.terasology.entitySystem.entity.internal.EngineEntityManager) BasicCelestialModel(org.terasology.world.sun.BasicCelestialModel) NetworkSystem(org.terasology.network.NetworkSystem) AtlasData(org.terasology.rendering.assets.atlas.AtlasData) DependencyResolver(org.terasology.module.DependencyResolver) LoggerFactory(org.slf4j.LoggerFactory) ComponentSystemManager(org.terasology.engine.ComponentSystemManager) HeadlessTexture(org.terasology.engine.subsystem.headless.assets.HeadlessTexture) WorldTime(org.terasology.world.time.WorldTime) Block(org.terasology.world.block.Block) Atlas(org.terasology.rendering.assets.atlas.Atlas) BlockShape(org.terasology.world.block.shapes.BlockShape) HeadlessSkeletalMesh(org.terasology.engine.subsystem.headless.assets.HeadlessSkeletalMesh) DefaultBlockFamilyFactoryRegistry(org.terasology.world.block.family.DefaultBlockFamilyFactoryRegistry) UIData(org.terasology.rendering.nui.asset.UIData) BlockFamilyTypeHandler(org.terasology.persistence.typeHandling.extensionTypes.BlockFamilyTypeHandler) BlockShapeData(org.terasology.world.block.shapes.BlockShapeData) ModuleAwareAssetTypeManager(org.terasology.assets.module.ModuleAwareAssetTypeManager) BiomeManager(org.terasology.world.biomes.BiomeManager) WorldProvider(org.terasology.world.WorldProvider) SubtextureData(org.terasology.rendering.assets.texture.subtexture.SubtextureData) ModuleEnvironment(org.terasology.module.ModuleEnvironment) BehaviorTree(org.terasology.logic.behavior.asset.BehaviorTree) FileSystem(java.nio.file.FileSystem) ShaderData(org.terasology.rendering.assets.shader.ShaderData) LoadPrefabs(org.terasology.engine.modes.loadProcesses.LoadPrefabs) CollisionGroup(org.terasology.physics.CollisionGroup) Font(org.terasology.rendering.assets.font.Font) TextureData(org.terasology.rendering.assets.texture.TextureData) BlockFamily(org.terasology.world.block.family.BlockFamily) ShrinkWrapFileSystems(org.jboss.shrinkwrap.api.nio.file.ShrinkWrapFileSystems) HorizontalBlockFamilyFactory(org.terasology.world.block.family.HorizontalBlockFamilyFactory) Texture(org.terasology.rendering.assets.texture.Texture) MeshAnimationData(org.terasology.rendering.assets.animation.MeshAnimationData) ModuleRegistry(org.terasology.module.ModuleRegistry) CollisionGroupManager(org.terasology.physics.CollisionGroupManager) MaterialData(org.terasology.rendering.assets.material.MaterialData) PathManager(org.terasology.engine.paths.PathManager) ResolutionResult(org.terasology.module.ResolutionResult) BlockManagerImpl(org.terasology.world.block.internal.BlockManagerImpl) WorldTimeImpl(org.terasology.world.time.WorldTimeImpl) HeadlessShader(org.terasology.engine.subsystem.headless.assets.HeadlessShader) Logger(org.slf4j.Logger) AssetFactory(org.terasology.assets.AssetFactory) MeshAnimation(org.terasology.rendering.assets.animation.MeshAnimation) NullSound(org.terasology.audio.nullAudio.NullSound) SkeletalMesh(org.terasology.rendering.assets.skeletalmesh.SkeletalMesh) Mockito.when(org.mockito.Mockito.when) StorageManager(org.terasology.persistence.StorageManager) WorldInfo(org.terasology.world.internal.WorldInfo) BlockSounds(org.terasology.world.block.sounds.BlockSounds) BlockFamilyDefinitionData(org.terasology.world.block.loader.BlockFamilyDefinitionData) BlockSoundsData(org.terasology.world.block.sounds.BlockSoundsData) NullStreamingSound(org.terasology.audio.nullAudio.NullStreamingSound) UIElement(org.terasology.rendering.nui.asset.UIElement) BlockFamilyDefinitionFormat(org.terasology.world.block.loader.BlockFamilyDefinitionFormat) UISkin(org.terasology.rendering.nui.skin.UISkin) UISkinData(org.terasology.rendering.nui.skin.UISkinData) SkeletalMeshData(org.terasology.rendering.assets.skeletalmesh.SkeletalMeshData) BlockTile(org.terasology.world.block.tiles.BlockTile) DefaultBlockFamilyFactoryRegistry(org.terasology.world.block.family.DefaultBlockFamilyFactoryRegistry) HeadlessSkeletalMesh(org.terasology.engine.subsystem.headless.assets.HeadlessSkeletalMesh) SkeletalMesh(org.terasology.rendering.assets.skeletalmesh.SkeletalMesh) Shader(org.terasology.rendering.assets.shader.Shader) HeadlessShader(org.terasology.engine.subsystem.headless.assets.HeadlessShader) HeadlessTexture(org.terasology.engine.subsystem.headless.assets.HeadlessTexture) Texture(org.terasology.rendering.assets.texture.Texture) Font(org.terasology.rendering.assets.font.Font) ShaderData(org.terasology.rendering.assets.shader.ShaderData) TileData(org.terasology.world.block.tiles.TileData) BlockFamilyDefinitionData(org.terasology.world.block.loader.BlockFamilyDefinitionData) TextureData(org.terasology.rendering.assets.texture.TextureData) MeshAnimation(org.terasology.rendering.assets.animation.MeshAnimation) AttachedToSurfaceFamilyFactory(org.terasology.world.block.family.AttachedToSurfaceFamilyFactory) Prefab(org.terasology.entitySystem.prefab.Prefab) PojoPrefab(org.terasology.entitySystem.prefab.internal.PojoPrefab) NullSound(org.terasology.audio.nullAudio.NullSound) WorldAtlas(org.terasology.world.block.tiles.WorldAtlas) NullWorldAtlas(org.terasology.world.block.tiles.NullWorldAtlas) Atlas(org.terasology.rendering.assets.atlas.Atlas) PrefabData(org.terasology.entitySystem.prefab.PrefabData) BehaviorTreeData(org.terasology.logic.behavior.asset.BehaviorTreeData) BlockShape(org.terasology.world.block.shapes.BlockShape) ModuleAwareAssetTypeManager(org.terasology.assets.module.ModuleAwareAssetTypeManager) FontData(org.terasology.rendering.assets.font.FontData) HeadlessMesh(org.terasology.engine.subsystem.headless.assets.HeadlessMesh) Mesh(org.terasology.rendering.assets.mesh.Mesh) HeadlessSkeletalMesh(org.terasology.engine.subsystem.headless.assets.HeadlessSkeletalMesh) SkeletalMesh(org.terasology.rendering.assets.skeletalmesh.SkeletalMesh) HeadlessMaterial(org.terasology.engine.subsystem.headless.assets.HeadlessMaterial) Material(org.terasology.rendering.assets.material.Material) BehaviorTree(org.terasology.logic.behavior.asset.BehaviorTree) BlockShapeData(org.terasology.world.block.shapes.BlockShapeData) UIData(org.terasology.rendering.nui.asset.UIData) MeshData(org.terasology.rendering.assets.mesh.MeshData) SkeletalMeshData(org.terasology.rendering.assets.skeletalmesh.SkeletalMeshData) AtlasData(org.terasology.rendering.assets.atlas.AtlasData) BlockSounds(org.terasology.world.block.sounds.BlockSounds) BlockSoundsData(org.terasology.world.block.sounds.BlockSoundsData) SubtextureData(org.terasology.rendering.assets.texture.subtexture.SubtextureData) HorizontalBlockFamilyFactory(org.terasology.world.block.family.HorizontalBlockFamilyFactory) MeshAnimationData(org.terasology.rendering.assets.animation.MeshAnimationData) MaterialData(org.terasology.rendering.assets.material.MaterialData) BlockFamilyDefinition(org.terasology.world.block.loader.BlockFamilyDefinition) Subtexture(org.terasology.rendering.assets.texture.subtexture.Subtexture)

Aggregations

BlockFamilyDefinition (org.terasology.world.block.loader.BlockFamilyDefinition)5 ResourceUrn (org.terasology.assets.ResourceUrn)3 BlockFamily (org.terasology.world.block.family.BlockFamily)3 BlockShape (org.terasology.world.block.shapes.BlockShape)3 Iterator (java.util.Iterator)2 Prefab (org.terasology.entitySystem.prefab.Prefab)2 PrefabData (org.terasology.entitySystem.prefab.PrefabData)2 PojoPrefab (org.terasology.entitySystem.prefab.internal.PojoPrefab)2 BehaviorTree (org.terasology.logic.behavior.asset.BehaviorTree)2 BehaviorTreeData (org.terasology.logic.behavior.asset.BehaviorTreeData)2 UIData (org.terasology.rendering.nui.asset.UIData)2 UIElement (org.terasology.rendering.nui.asset.UIElement)2 UISkin (org.terasology.rendering.nui.skin.UISkin)2 UISkinData (org.terasology.rendering.nui.skin.UISkinData)2 DefaultBlockFamilyFactoryRegistry (org.terasology.world.block.family.DefaultBlockFamilyFactoryRegistry)2 BlockFamilyDefinitionData (org.terasology.world.block.loader.BlockFamilyDefinitionData)2 BlockFamilyDefinitionFormat (org.terasology.world.block.loader.BlockFamilyDefinitionFormat)2 BlockShapeData (org.terasology.world.block.shapes.BlockShapeData)2 BlockSounds (org.terasology.world.block.sounds.BlockSounds)2 BlockSoundsData (org.terasology.world.block.sounds.BlockSoundsData)2