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


Java Parts类代码示例

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


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

示例1: loadRecipes

import appeng.api.definitions.Parts; //导入依赖的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

示例2: parts

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

示例3: parts

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


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