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


Java RecipeRuneAltar类代码示例

本文整理汇总了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);
    }
}
 
开发者ID:legendblade,项目名称:CraftingHarmonics,代码行数:19,代码来源:RemoveRunicAltarRecipeOperation.java

示例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));
}
 
开发者ID:legendblade,项目名称:CraftingHarmonics,代码行数:13,代码来源:AddRunicAltarRecipeOperation.java

示例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);
    }
}
 
开发者ID:legendblade,项目名称:CraftingHarmonics,代码行数:15,代码来源:RemoveRunicAltarRecipeOperation.java

示例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);
    }
}
 
开发者ID:legendblade,项目名称:CraftingHarmonics,代码行数:10,代码来源:RemoveRunicAltarRecipeOperation.java

示例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));
}
 
开发者ID:vidaj,项目名称:TFCBotania,代码行数:14,代码来源:RecipeManager.java

示例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));
}
 
开发者ID:vidaj,项目名称:TFCBotania,代码行数:14,代码来源:RecipeManager.java

示例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));
}
 
开发者ID:vidaj,项目名称:TFCBotania,代码行数:14,代码来源:RecipeManager.java

示例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));
}
 
开发者ID:vidaj,项目名称:TFCBotania,代码行数:14,代码来源:RecipeManager.java

示例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));
}
 
开发者ID:vidaj,项目名称:TFCBotania,代码行数:14,代码来源:RecipeManager.java

示例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));
}
 
开发者ID:vidaj,项目名称:TFCBotania,代码行数:14,代码来源:RecipeManager.java

示例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)));
    }
}
 
开发者ID:TPPIDev,项目名称:TPPI-Tweaks,代码行数:16,代码来源:TweakBotania.java

示例12: runeRecipesPage

import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
@Override
public LexiconPage runeRecipesPage(String key, List<RecipeRuneAltar> recipes) {
	return dummyPage(key);
}
 
开发者ID:VapourDrive,项目名称:Hammerz,代码行数:5,代码来源:DummyMethodHandler.java

示例13: runeRecipePage

import vazkii.botania.api.recipe.RecipeRuneAltar; //导入依赖的package包/类
@Override
public LexiconPage runeRecipePage(String key, RecipeRuneAltar recipe) {
	return dummyPage(key);
}
 
开发者ID:VapourDrive,项目名称:Hammerz,代码行数:5,代码来源:DummyMethodHandler.java

示例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;
}
 
开发者ID:VapourDrive,项目名称:Hammerz,代码行数:15,代码来源:BotaniaAPI.java

示例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;
}
 
开发者ID:Nincodedo,项目名称:Nincrafty-Things,代码行数:14,代码来源:BotaniaAPI.java


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