本文整理汇总了Java中vazkii.botania.api.recipe.RecipeRuneAltar类的典型用法代码示例。如果您正苦于以下问题:Java RecipeRuneAltar类的具体用法?Java RecipeRuneAltar怎么用?Java RecipeRuneAltar使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RecipeRuneAltar类属于vazkii.botania.api.recipe包,在下文中一共展示了RecipeRuneAltar类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: apply
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
/**
* Called to apply the set (if not player-specific)
*/
@Override
public void apply() {
if(what != null) {
LogHelper.info("Removing Botania runic altar recipes producing '{}'.", ItemUtility.outputItemName(what));
} else if(with != null) {
LogHelper.info("Removing Botania runic altar recipes using {}.",
Joiner.on(", ").join(Arrays.stream(with).map(ItemUtility::outputItemName).collect(Collectors.toList())));
} else {
LogHelper.info("Removing all Botania runic altar recipes.");
}
for(RecipeRuneAltar recipe : recipes) {
BotaniaAPI.runeAltarRecipes.remove(recipe);
}
}
示例2: init
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
/**
* Called to initialize the set
*
* @throws OperationException If something went wrong
*/
@Override
public void init() throws OperationException {
if(output == null) throw new OperationException("Botania.addRunicAltar must have a valid 'output'.");
if(with == null || with.length <= 0) throw new OperationException("Botania.addRunicAltar must have at least one valid intput ('with').");
recipe = new RecipeRuneAltar(output, mana, RecipeInput.getFacsimileItems(with));
}
示例3: init
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
/**
* Called to initialize the set
*
* @throws OperationException If something went wrong
*/
@Override
public void init() throws OperationException {
recipes.clear();
for(RecipeRuneAltar recipe : BotaniaAPI.runeAltarRecipes) {
if(!ItemUtility.areRecipesEquivalent(what, recipe.getOutput(), with, recipe.getInputs())) continue;
recipes.add(recipe);
}
}
示例4: undo
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
/**
* Called to remove the set (if not player-specific)
*/
@Override
public void undo() {
for(RecipeRuneAltar recipe : recipes) {
BotaniaAPI.runeAltarRecipes.add(recipe);
}
}
示例5: addFireRune
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
private void addFireRune() {
ItemStack output = new ItemStack(ModItems.rune, 3, 1);
Object[] inputs = new Object[] {
"dustSulfur",
new ItemStack(Items.gunpowder),
new ItemStack(Items.netherbrick),
LibOreDict.MANA_STEEL,
LibOreDict.MANA_STEEL,
LibOreDict.MANA_STEEL
};
BotaniaAPI.runeAltarRecipes.add(new RecipeRuneAltar(output, TIER1_MANA_COST, inputs));
}
示例6: addWaterRune
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
private void addWaterRune() {
ItemStack output = new ItemStack(ModItems.rune, 3);
Object[] inputs = new Object[] {
"itemReed",
new ItemStack(TFCItems.fishingRod),
"dyeWhite",
LibOreDict.MANA_STEEL,
LibOreDict.MANA_STEEL,
LibOreDict.MANA_STEEL
};
BotaniaAPI.runeAltarRecipes.add(new RecipeRuneAltar(output, TIER1_MANA_COST, inputs));
}
示例7: addAirRune
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
private void addAirRune() {
ItemStack output = new ItemStack(ModItems.rune, 3, 3);
Object[] inputs = new Object[] {
new ItemStack(Items.feather),
new ItemStack(Items.string),
"materialCloth",
LibOreDict.MANA_STEEL,
LibOreDict.MANA_STEEL,
LibOreDict.MANA_STEEL
};
BotaniaAPI.runeAltarRecipes.add(new RecipeRuneAltar(output, TIER1_MANA_COST, inputs));
}
示例8: addSpringRune
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
private void addSpringRune() {
ItemStack output = new ItemStack(ModItems.rune, 1, 4);
Object[] inputs = new Object[] {
"seedBag",
"treeSapling",
"treeSapling",
"treeSapling",
LibOreDict.RUNE[0],
LibOreDict.RUNE[1]
};
BotaniaAPI.runeAltarRecipes.add(new RecipeRuneAltar(output, TIER2_MANA_COST, inputs));
}
示例9: addSummerRune
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
private void addSummerRune() {
ItemStack output = new ItemStack(ModItems.rune, 1, 5);
Object[] inputs = new Object[] {
"dyeGreen",
new ItemStack(TFCBlocks.pumpkin),
"blockSand",
"blockSand",
LibOreDict.RUNE[2],
LibOreDict.RUNE[3]
};
BotaniaAPI.runeAltarRecipes.add(new RecipeRuneAltar(output, TIER2_MANA_COST, inputs));
}
示例10: addWinterRune
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
private void addWinterRune() {
ItemStack output = new ItemStack(ModItems.rune, 1, 7);
Object[] inputs = new Object[] {
"dyeWhite",
"materialCloth",
new ItemStack(Blocks.snow),
new ItemStack(Blocks.snow),
LibOreDict.RUNE[0],
LibOreDict.RUNE[2]
};
BotaniaAPI.runeAltarRecipes.add(new RecipeRuneAltar(output, TIER2_MANA_COST, inputs));
}
示例11: addSmokeyQuartzConversion
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
@RecipeAddition(requiredModids = {"Botania", "ThaumicTinkerer"})
public static void addSmokeyQuartzConversion() {
TweakingRegistry.addTweakedTooltip(ttDarkQuartz.getItem(), 0, TweakingAction.NOTE, "Added recipe to convert to", "the Botania version.");
TweakingRegistry.addTweakedTooltip(bDarkQuartz.getItem(), 0, TweakingAction.NOTE, "Added recipe to convert to", "the ThaumicTinkerer version.");
GameRegistry.addRecipe(new ShapelessOreRecipe(bDarkQuartz, ttDarkQuartz));
GameRegistry.addRecipe(new ShapelessOreRecipe(ttDarkQuartz, bDarkQuartz));
if (ConfigurationHandler.enableOcelotAndWolfEggRecipes) {
TweakingRegistry.addTweakedTooltip(Items.spawn_egg, 98, TweakingAction.ADDED, "Added Runic Altar recipe to craft.");
TweakingRegistry.addTweakedTooltip(Items.spawn_egg, 95, TweakingAction.ADDED, "Added Runic Altar recipe to craft.");
BotaniaAPI.runeAltarRecipes.add(new RecipeRuneAltar(new ItemStack(Items.spawn_egg, 1, 98), 75000, new ItemStack(Items.egg), new ItemStack(Items.fish, 1, 0), new ItemStack(Items.fish, 1, 1), new ItemStack(Blocks.sapling, 1, 3), new ItemStack(GameRegistry.findItem("Botania", "rune"), 1, 8)));
BotaniaAPI.runeAltarRecipes.add(new RecipeRuneAltar(new ItemStack(Items.spawn_egg, 1, 95), 75000, new ItemStack(Items.egg), new ItemStack(Items.bone, 1, 0), new ItemStack(Items.bone, 1, 0), new ItemStack(Items.stick, 1, 0), new ItemStack(GameRegistry.findItem("Botania", "rune"), 1, 8)));
}
}
示例12: runeRecipesPage
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
@Override
public LexiconPage runeRecipesPage(String key, List<RecipeRuneAltar> recipes) {
return dummyPage(key);
}
示例13: runeRecipePage
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
@Override
public LexiconPage runeRecipePage(String key, RecipeRuneAltar recipe) {
return dummyPage(key);
}
示例14: registerRuneAltarRecipe
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
/**
* Registers a Rune Altar Recipe.
* @param output The ItemStack to craft.
* @param mana The amount of mana required. Don't go over 100000!
* @param inputs The objects for crafting. Can be ItemStack, MappableStackWrapper
* or String (case for Ore Dictionary). The array can't be larger than 16.
* @return The recipe created.
*/
public static RecipeRuneAltar registerRuneAltarRecipe(ItemStack output, int mana, Object... inputs) {
Preconditions.checkArgument(inputs.length <= 16);
RecipeRuneAltar recipe = new RecipeRuneAltar(output, mana, inputs);
runeAltarRecipes.add(recipe);
return recipe;
}
示例15: registerRuneAltarRecipe
import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
/**
* Registers a Rune Altar Recipe.
* @param output The ItemStack to craft.
* @param mana The amount of mana required. Don't go over 100000!
* @param inputs The objects for crafting. Can be ItemStack, MappableStackWrapper
* or String (case for Ore Dictionary). The array can't be larger than 16.
* @return The recipe created.
*/
public static RecipeRuneAltar registerRuneAltarRecipe(ItemStack output, int mana, Object... inputs) {
RecipeRuneAltar recipe = new RecipeRuneAltar(output, mana, inputs);
runeAltarRecipes.add(recipe);
return recipe;
}