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