本文整理汇总了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))});
}
}
示例2: parts
import appeng.api.definitions.Parts; //导入依赖的package包/类
/**
* @return an accessible list of all of AE's parts, parts are items
*/
Parts parts();
示例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();