当前位置: 首页>>代码示例>>Java>>正文


Java Materials类代码示例

本文整理汇总了Java中appeng.api.definitions.Materials的典型用法代码示例。如果您正苦于以下问题:Java Materials类的具体用法?Java Materials怎么用?Java Materials使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Materials类属于appeng.api.definitions包,在下文中一共展示了Materials类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: registerAEComponents

import appeng.api.definitions.Materials; //导入依赖的package包/类
public static void registerAEComponents(boolean loaded) {
    if (loaded) {
        Materials aeMaterials = AEApi.instance().materials();

        certusQuartz = aeMaterials.materialCertusQuartzCrystal.stack(1);
        certusQuartzCharged = aeMaterials.materialCertusQuartzCrystalCharged.stack(1);
    }
    else {
        certusQuartz = new ItemStack(Items.quartz);
        certusQuartzCharged = new ItemStack(Items.quartz);
    }
}
 
开发者ID:Zerrens,项目名称:InterstellarOres,代码行数:13,代码来源:ModIntegration.java

示例2: loadRecipes

import appeng.api.definitions.Materials; //导入依赖的package包/类
public static void loadRecipes(String modName) {
    Equivalency.loadModRecipes(modName);
    Materials mat = AEApi.instance().materials();
    Parts parts = AEApi.instance().parts();

    if (ModVars.quratzRecipe) {
        if (ModLoaded.isModInstalled("IC2")) {
            TransmutationHelper.addRecipe(new ItemStack(mat.materialCertusQuartzDust.item(), 4, 7), new Object[]{mat.materialCertusQuartzCrystal.item(), mat.materialCertusQuartzCrystal.item()});
        } else {
            TransmutationHelper.addRecipe(new ItemStack(mat.materialCertusQuartzDust.item(), 6, 7), new Object[]{mat.materialCertusQuartzCrystal.item(), mat.materialCertusQuartzCrystal.item()});
        }
    }

    // 5 Quartz Dust -> 1 Iron Ingot
    TransmutationHelper.addRecipe(new ItemStack(Items.iron_ingot), new Object[]{mat.materialCertusQuartzDust.item(), mat.materialCertusQuartzDust.item(), mat.materialCertusQuartzDust.item(),
            mat.materialCertusQuartzDust.item(), mat.materialCertusQuartzDust.item()});

    // 5 Iron -> 1 Quartz Crystal
    TransmutationHelper.addRecipe(new ItemStack(mat.materialCertusQuartzCrystal.item(), 1, 6), new Object[]{Items.iron_ingot, Items.iron_ingot, Items.iron_ingot, Items.iron_ingot,
            Items.iron_ingot});

    // 1 Quartz Crystal -> 5 Iron
    TransmutationHelper.addRecipe(new ItemStack(Items.iron_ingot, 5), new Object[]{mat.materialCertusQuartzCrystal.item()});

    for (int j = 0; j < 17; j++) {
        if (j == 16)
            TransmutationHelper.addRecipe(parts.partCableGlass.item(getColorFromInt(0)), new Object[]{parts.partCableGlass.item(getColorFromInt(j))});
        else
            TransmutationHelper.addRecipe(parts.partCableGlass.item(getColorFromInt(j + 1)), new Object[]{parts.partCableGlass.item(getColorFromInt(j))});
    }
}
 
开发者ID:Lomeli12,项目名称:Equivalency,代码行数:32,代码来源:AppliedEnergisticsRecipes.java

示例3: materials

import appeng.api.definitions.Materials; //导入依赖的package包/类
/**
 * @return an accessible list of all of AE's materials; materials are items
 */
Materials materials();
 
开发者ID:amadornes,项目名称:Framez,代码行数:5,代码来源:IAppEngApi.java

示例4: materials

import appeng.api.definitions.Materials; //导入依赖的package包/类
/**
 * @return an accessible list of all of AE's materials; materials are items
 *
 * @deprecated use {@link appeng.api.definitions.IDefinitions#materials()}
 */
@Deprecated
Materials materials();
 
开发者ID:MineMaarten,项目名称:PneumaticCraft,代码行数:8,代码来源:IAppEngApi.java


注:本文中的appeng.api.definitions.Materials类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。