本文整理汇总了Java中thaumcraft.common.config.ConfigResearch类的典型用法代码示例。如果您正苦于以下问题:Java ConfigResearch类的具体用法?Java ConfigResearch怎么用?Java ConfigResearch使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConfigResearch类属于thaumcraft.common.config包,在下文中一共展示了ConfigResearch类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addArcaneRecipes
import thaumcraft.common.config.ConfigResearch; //导入依赖的package包/类
static void addArcaneRecipes()
{
ConfigResearch.recipes.put("Skyfilter", ThaumcraftApi.addArcaneCraftingRecipe("SKYFILTER", new ItemStack(getItem(Info.resources), 1, 8), new AspectList().add(Aspect.ORDER, 5).add(Aspect.WATER, 5), new Object[] { "mmm", "imi", "mmm", 'i', Item.ingotGold, 'm', new ItemStack(getItem(Info.mesh), 1, 0) }));
if (Configurations.runichax)
{
ConfigResearch.recipes.put("SkyMatrix", ThaumcraftApi.addArcaneCraftingRecipe("SKYMATRIX", new ItemStack(getBlock(Info.devices), 1, 2), new AspectList().add(Aspect.AIR, 10).add(Aspect.EARTH, 10).add(Aspect.FIRE, 10).add(Aspect.WATER, 10).add(Aspect.ORDER, 10).add(Aspect.ENTROPY, 10), new Object[] { "bcb", "cec", "bcb", 'b', new ItemStack(getBlock(Info.cosmetics), 1, 6), 'c', new ItemStack(getBlock(Info.cluster), 1, 6), 'e', Item.enderPearl }));
}
else
{
ConfigResearch.recipes.put("Greatwood1", ThaumcraftApi.addArcaneCraftingRecipe("GREATWOOD", new ItemStack(getBlock(Info.thaumplants), 1, 0), new AspectList().add(Aspect.AIR, 25).add(Aspect.EARTH, 25).add(Aspect.FIRE, 25).add(Aspect.WATER, 25).add(Aspect.ORDER, 25).add(Aspect.ENTROPY, 25), new Object[] { "www", "csl", "www", 'w', getItem(Info.witchbucket), 'c', new ItemStack(getBlock(Info.thaumplants), 1, 3), 'l', new ItemStack(getBlock(Info.thaumplants),1, 2), 's', new ItemStack(Block.sapling, 1, 3) }));
ConfigResearch.recipes.put("Greatwood2", ThaumcraftApi.addArcaneCraftingRecipe("GREATWOOD", new ItemStack(getBlock(Info.thaumplants), 1, 0), new AspectList().add(Aspect.AIR, 25).add(Aspect.EARTH, 25).add(Aspect.FIRE, 25).add(Aspect.WATER, 25).add(Aspect.ORDER, 25).add(Aspect.ENTROPY, 25), new Object[] { "www", "lsc", "www", 'w', getItem(Info.witchbucket), 'c', new ItemStack(getBlock(Info.thaumplants), 1, 3), 'l', new ItemStack(getBlock(Info.thaumplants),1, 2), 's', new ItemStack(Block.sapling, 1, 3) }));
}
ConfigResearch.recipes.put("ObsidianTotem", ThaumcraftApi.addArcaneCraftingRecipe("OBSIDIANTOTEM", new ItemStack(getBlock(Info.cosmetics), 2, 0), new AspectList().add(Aspect.EARTH, 2).add(Aspect.FIRE, 2), new Object[] { " i ", "oeo", " i ", 'i', new ItemStack(Item.dyePowder, 1, 0), 'e', Item.enderPearl, 'o', new ItemStack(getBlock(Info.cosmetics), 1, 1) } ));
}
示例2: addInfusionRecipes
import thaumcraft.common.config.ConfigResearch; //导入依赖的package包/类
static void addInfusionRecipes()
{
if (Configurations.runichax)
{
ConfigResearch.recipes.put("Greatwood1", ThaumcraftApi.addInfusionCraftingRecipe("GREATWOOD",
new ItemStack(getBlock(Info.thaumplants), 1, 0),
10,
new AspectList().add(Aspect.TREE, 128).add(Aspect.AIR, 64).add(Aspect.EARTH, 64).add(Aspect.FIRE, 64).add(Aspect.WATER, 64).add(Aspect.ORDER, 64).add(Aspect.ENTROPY, 64),
new ItemStack(Block.sapling, 1, 3),
new ItemStack[] {
new ItemStack(getItem(Info.witchbucket), 1, 0), new ItemStack(getItem(Info.witchbucket), 1, 0), new ItemStack(getBlock(Info.thaumplants), 1, 2),
new ItemStack(getItem(Info.witchbucket), 1, 0), new ItemStack(getItem(Info.witchbucket), 1, 0), new ItemStack(getItem(Info.witchbucket), 1, 0),
new ItemStack(getBlock(Info.thaumplants), 1, 3), new ItemStack(getItem(Info.witchbucket), 1, 0)
}));
ConfigResearch.recipes.put("Greatwood2", ThaumcraftApi.addInfusionCraftingRecipe("GREATWOOD",
new ItemStack(getBlock(Info.thaumplants), 1, 0),
10,
new AspectList().add(Aspect.TREE, 128).add(Aspect.AIR, 64).add(Aspect.EARTH, 64).add(Aspect.FIRE, 64).add(Aspect.WATER, 64).add(Aspect.ORDER, 64).add(Aspect.ENTROPY, 64),
new ItemStack(Block.sapling, 1, 3),
new ItemStack[] {
new ItemStack(getItem(Info.witchbucket), 1, 0), new ItemStack(getItem(Info.witchbucket), 1, 0), new ItemStack(getBlock(Info.thaumplants), 1, 3),
new ItemStack(getItem(Info.witchbucket), 1, 0), new ItemStack(getItem(Info.witchbucket), 1, 0), new ItemStack(getItem(Info.witchbucket), 1, 0),
new ItemStack(getBlock(Info.thaumplants), 1, 2), new ItemStack(getItem(Info.witchbucket), 1, 0)
}));
}
if (Configurations.silverwoodSwitch == 0)
{
ConfigResearch.recipes.put("Silverwood",ThaumcraftApi.addInfusionCraftingRecipe("SILVERWOOD1",
new ItemStack(getBlock(Info.thaumplants), 1, 1),
15,
new AspectList().add(Aspect.EXCHANGE, 96).add(Aspect.MAGIC, 96).add(Aspect.CRYSTAL, 96).add(Aspect.TREE, 192),
new ItemStack(getItem(Info.nodejar), 1, 0),
new ItemStack[] {
new ItemStack(Item.netherStar, 1, 0), new ItemStack(getBlock(Info.thaumplants), 1, 2), new ItemStack(Block.blockDiamond, 1, 0),
new ItemStack(getBlock(Info.thaumplants), 1, 2), new ItemStack(Item.netherStar, 1, 0), new ItemStack(getBlock(Info.thaumplants), 1, 2),
new ItemStack(Block.blockDiamond, 1, 0), new ItemStack(getBlock(Info.thaumplants), 1, 2)
}));
}
else if (Configurations.silverwoodSwitch >= 1)
{
ConfigResearch.recipes.put("Silverwood",ThaumcraftApi.addInfusionCraftingRecipe("SILVERWOOD2",
new ItemStack(getBlock(Info.thaumplants), 1, 1),
12,
new AspectList().add(Aspect.EXCHANGE, 64).add(Aspect.MAGIC, 64).add(Aspect.CRYSTAL, 64).add(Aspect.TREE, 128),
new ItemStack(getItem(Info.nodejar), 1, 0),
new ItemStack[] {
new ItemStack(Item.netherStar, 1, 0), new ItemStack(getBlock(Info.thaumplants), 1, 4), new ItemStack(Block.blockDiamond, 1, 0),
new ItemStack(getBlock(Info.thaumplants), 1, 4), new ItemStack(Item.netherStar, 1, 0), new ItemStack(getBlock(Info.thaumplants), 1, 4),
new ItemStack(Block.blockDiamond, 1, 0), new ItemStack(getBlock(Info.thaumplants), 1, 4)
}));
}
}
示例3: addCrucibleRecipes
import thaumcraft.common.config.ConfigResearch; //导入依赖的package包/类
static void addCrucibleRecipes()
{
ConfigResearch.recipes.put("Shimmerleaf", ThaumcraftApi.addCrucibleRecipe("SHIMMERLEAF", new ItemStack(getBlock(Info.thaumplants), 1, 2), new ItemStack(Block.plantRed, 1, 0), new AspectList().add(Aspect.MAGIC, 4).add(Aspect.EXCHANGE, 4).add(Aspect.PLANT, 4).add(Aspect.POISON, 4)));
ConfigResearch.recipes.put("Cinderpearl", ThaumcraftApi.addCrucibleRecipe("CINDERPEARL", new ItemStack(getBlock(Info.thaumplants), 1, 3), new ItemStack(Block.plantYellow, 1, 0), new AspectList().add(Aspect.MAGIC, 4).add(Aspect.EXCHANGE, 4). add(Aspect.PLANT, 4).add(Aspect.FIRE, 4)));
}
示例4: addOreDictRecipes
import thaumcraft.common.config.ConfigResearch; //导入依赖的package包/类
static void addOreDictRecipes(String name, ItemStack stack, Object[] recipe)
{
GameRegistry.addRecipe(new ShapedOreRecipe(stack, recipe));
List<IRecipe> irecipe = CraftingManager.getInstance().getRecipeList();
ConfigResearch.recipes.put(name, irecipe.get(irecipe.size() -1));
}
示例5: postInit
import thaumcraft.common.config.ConfigResearch; //导入依赖的package包/类
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
ConfigResearch.recipes.put("SymmetryCalculator",
ThaumcraftApi.addArcaneCraftingRecipe(
SYMCALC_KEY,
new ItemStack(itemSymCalc),
new AspectList()
.add(Aspect.ORDER, 60)
.add(Aspect.WATER, 25),
" AW", "SBS", "SSS",
'S', new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 6), // arcane stone
'B', new ItemStack(ConfigBlocks.blockCosmeticOpaque, 1, 0), // amber block
'A', new ItemStack(ConfigItems.itemResource, 1, 6), // amber
'W', new ItemStack(ConfigItems.itemShard, 1, 2) // water shard
));
log.info("Added arcane recipe");
researchSymCalc = new ResearchItem(
SYMCALC_KEY, "ARTIFICE",
new AspectList()
.add(Aspect.ORDER, 5) // ordo
.add(Aspect.CRAFT, 8) // fabrico
.add(Aspect.MAGIC, 3) // praecantatio
.add(Aspect.MECHANISM, 3), // machina
-6, 6, 2,
new ItemStack(itemSymCalc, 1, 0))
.setPages(
new ResearchPage[] {
new ResearchPage("symcalc.research.1"),
new ResearchPage((IArcaneRecipe) ConfigResearch.recipes.get("SymmetryCalculator"))
})
.setParents(new String[]{"INFUSION"});
if(isResearchHidden) {
researchSymCalc
.setHidden()
.setItemTriggers(new ItemStack(ConfigBlocks.blockStoneDevice, 1, 2)); // runic matrix
}
researchSymCalc.registerResearchItem();
log.info("Added research");
}