本文整理汇总了Java中thaumcraft.api.ThaumcraftApi.addArcaneCraftingRecipe方法的典型用法代码示例。如果您正苦于以下问题:Java ThaumcraftApi.addArcaneCraftingRecipe方法的具体用法?Java ThaumcraftApi.addArcaneCraftingRecipe怎么用?Java ThaumcraftApi.addArcaneCraftingRecipe使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类thaumcraft.api.ThaumcraftApi
的用法示例。
在下文中一共展示了ThaumcraftApi.addArcaneCraftingRecipe方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initThaumic
import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
public static void initThaumic() {
recipeQuartz = ThaumcraftApi.addCrucibleRecipe(ResearchLib.QUARTZ_KEY, new ItemStack(ModItems.itemResource, 1, 2), new ItemStack(Items.quartz), new AspectList().add(Aspect.MAGIC, 4).add(Aspect.ELDRITCH, 4));
recipeCrystal = ThaumcraftApi.addCrucibleRecipe(ResearchLib.CRYSTAL_KEY, new ItemStack(ModItems.itemResource, 1, 1), new ItemStack(ModItems.itemResource, 1, 0), new AspectList().add(Aspect.MAGIC, 32).add(Aspect.CRYSTAL, 32));
recipeWardenHelm = ThaumcraftApi.addArcaneCraftingRecipe(ResearchLib.WARDEN_ARMOR_KEY, new ItemStack(ModItems.itemWardenHelm, 1), new AspectList().add(Aspect.ORDER, 125).add(Aspect.ENTROPY, 125).add(Aspect.AIR, 125).add(Aspect.EARTH, 125).add(Aspect.FIRE, 125).add(Aspect.WATER, 125),
"XXX", "XOX", " ", 'X', new ItemStack(ModItems.itemResource, 1, 2), 'O', new ItemStack(ModItems.itemResource, 1, 1));
recipeWardenChest = ThaumcraftApi.addArcaneCraftingRecipe(ResearchLib.WARDEN_ARMOR_KEY, new ItemStack(ModItems.itemWardenChest, 1), new AspectList().add(Aspect.ORDER, 125).add(Aspect.ENTROPY, 125).add(Aspect.AIR, 125).add(Aspect.EARTH, 125).add(Aspect.FIRE, 125).add(Aspect.WATER, 125),
"X X", "XOX", "XXX", 'X', new ItemStack(ModItems.itemResource, 1, 2), 'O', new ItemStack(ModItems.itemResource, 1, 1));
recipeWardenLegs = ThaumcraftApi.addArcaneCraftingRecipe(ResearchLib.WARDEN_ARMOR_KEY, new ItemStack(ModItems.itemWardenLegs, 1), new AspectList().add(Aspect.ORDER, 125).add(Aspect.ENTROPY, 125).add(Aspect.AIR, 125).add(Aspect.EARTH, 125).add(Aspect.FIRE, 125).add(Aspect.WATER, 125),
"XXX", "XOX", "X X", 'X', new ItemStack(ModItems.itemResource, 1, 2), 'O', new ItemStack(ModItems.itemResource, 1, 1));
recipeWardenBoots = ThaumcraftApi.addArcaneCraftingRecipe(ResearchLib.WARDEN_ARMOR_KEY, new ItemStack(ModItems.itemWardenBoots, 1), new AspectList().add(Aspect.ORDER, 125).add(Aspect.ENTROPY, 125).add(Aspect.AIR, 125).add(Aspect.EARTH, 125).add(Aspect.FIRE, 125).add(Aspect.WATER, 125),
" ", "XOX", "X X", 'X', new ItemStack(ModItems.itemResource, 1, 2), 'O', new ItemStack(ModItems.itemResource, 1, 1));
recipeWardenSword = ThaumcraftApi.addArcaneCraftingRecipe(ResearchLib.WARDEN_WEAPON_KEY, new ItemStack(ModItems.itemWardenSword, 1), new AspectList().add(Aspect.ORDER, 125).add(Aspect.ENTROPY, 125).add(Aspect.AIR, 125).add(Aspect.EARTH, 125).add(Aspect.FIRE, 125).add(Aspect.WATER, 125),
" X ", " X ", " O ", 'X', new ItemStack(ModItems.itemResource, 1, 2), 'O', new ItemStack(ModItems.itemResource, 1, 1));
recipeWaslieHammer = ThaumcraftApi.addArcaneCraftingRecipe(ResearchLib.WASLIE_HAMMER_KEY, new ItemStack(ModItems.itemWaslieHammer, 1), new AspectList().add(Aspect.ORDER, 125).add(Aspect.ENTROPY, 125).add(Aspect.AIR, 125).add(Aspect.EARTH, 125).add(Aspect.FIRE, 125).add(Aspect.WATER, 125),
"XXX", "XOX", " I ", 'X', new ItemStack(ModItems.itemResource, 1, 1), 'O', new ItemStack(ModItems.itemResource, 1, 2), 'I', new ItemStack(ConfigBlocks.blockMagicalLog));
recipeFocusIllumination = ThaumcraftApi.addArcaneCraftingRecipe(ResearchLib.FOCUS_ILLUMINATION_KEY, new ItemStack(ModItems.itemFocusIllumination, 1), new AspectList().add(Aspect.AIR, 50).add(Aspect.FIRE, 50),
" X ", "XOX", " X ", 'X', new ItemStack(ConfigItems.itemResource, 1, 1), 'O', new ItemStack(ConfigItems.itemFocusFire));
}
示例2: registerCrafting
import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
@Override
protected void registerCrafting( final CommonDependantItems cdi )
{
// Backpack item
ItemStack backpack = ThEApi.instance().items().GolemWifiBackpack.getStack();
// Aspects
AspectList aspects = new AspectList();
aspects.add( Aspect.AIR, 6 );
aspects.add( Aspect.FIRE, 4 );
aspects.add( Aspect.ORDER, 3 );
// Recipe
Object[] recipe = new Object[] { "TIT", "NWN", "FCF",
'T', cdi.ThaumiumIngot,
'I', cdi.MEInterfacePart,
'N', cdi.Nitor,
'W', cdi.WirelessReceiver,
'F', cdi.FluixCrystal,
'C', cdi.MECharger };
// Register
RecipeRegistry.ITEM_GOLEM_WIFI_BACKPACK = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey, backpack, aspects, recipe );
}
示例3: registerCrafting
import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
@Override
protected void registerCrafting( final CommonDependantItems cdi )
{
// My items
ItemStack dpeStack = ThEApi.instance().blocks().DistillationPatternEncoder.getStack();
// Aspect list
AspectList dpeAspects = new AspectList();
dpeAspects.add( Aspect.ORDER, 5 );
dpeAspects.add( Aspect.ENTROPY, 5 );
dpeAspects.add( Aspect.FIRE, 3 );
// Recipe
Object[] dpeRecipe = new Object[] { "IPI", " T ", "IEI", 'I', cdi.IronIngot, 'P', cdi.IlluminatedPanel, 'T', cdi.Thaumometer, 'E',
cdi.EngineeringProcessor };
// Register
RecipeRegistry.BLOCK_DISTILLATION_PATTERN_ENCODER = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey,
dpeStack, dpeAspects, dpeRecipe );
}
示例4: registerCrafting
import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
@Override
protected void registerCrafting( final CommonDependantItems cdi )
{
// My items
ItemStack WrenchFocus = ThEApi.instance().items().WandFocusAEWrench.getStack();
// Wrench focus
AspectList wrenchAspects = new AspectList();
wrenchAspects.add( Aspect.AIR, 10 );
wrenchAspects.add( Aspect.FIRE, 10 );
RecipeRegistry.ITEM_WRENCH_FOCUS = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey, WrenchFocus,
wrenchAspects,
new Object[] { "ANF", "NWN", "FNA", 'A', cdi.AirShard, 'F', cdi.FireShard, 'N', cdi.NetherQuartz, 'W', cdi.CertusWrench } );
}
示例5: registerRecipe
import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
@Override
public void registerRecipe(Object sourceRecipe, ItemStack output, Object... inputs) {
if (!(sourceRecipe instanceof ShapedArcaneRecipe)) { return; }
ShapedArcaneRecipe r = (ShapedArcaneRecipe)sourceRecipe;
AspectList aspectList = r.getAspects().copy();
for(Entry<Aspect, Integer> aspect : aspectList.aspects.entrySet()) {
aspect.setValue((int)Math.round(0.4 * aspect.getValue()));
}
ThaumcraftApi.addArcaneCraftingRecipe(r.research, output, aspectList, inputs);
}
示例6: registerCrafting
import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
@Override
protected void registerCrafting( final CommonDependantItems cdi )
{
// Thaumcraft items
ItemStack CraftingScepter = VisCraftingHelper.INSTANCE.getCraftingScepter();
// My Items
ItemStack KnowledgeCore = ThEApi.instance().items().KnowledgeCore.getStack();
ItemStack KnowledgeInscriber = ThEApi.instance().blocks().KnowledgeInscriber.getStack();
ItemStack ArcaneAssembler = ThEApi.instance().blocks().ArcaneAssembler.getStack();
ArcaneAssembler.setTagCompound( TileArcaneAssembler.getCraftTag() );
// Knowledge Core
AspectList kCoreAspects = new AspectList();
// Set KC crafting aspects
kCoreAspects.add( Aspect.WATER, 3 );
kCoreAspects.add( Aspect.ORDER, 3 );
kCoreAspects.add( Aspect.EARTH, 1 );
// Set KC recipe
Object[] kCoreRecipe = new Object[] { "VLV", "LZL", "VCV", 'V', cdi.VibrantGlass, 'L', cdi.VanillaLapis, 'Z', cdi.ZombieBrain, 'C',
cdi.CalculationProcessor };
// Register KC
RecipeRegistry.ITEM_KNOWLEDGE_CORE = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey,
KnowledgeCore, kCoreAspects, kCoreRecipe );
// Knowledge Inscriber
AspectList kiAspects = new AspectList();
// Set KI crafting aspects
kiAspects.add( Aspect.WATER, 5 );
kiAspects.add( Aspect.ORDER, 5 );
kiAspects.add( Aspect.EARTH, 5 );
kiAspects.add( Aspect.ENTROPY, 5 );
kiAspects.add( Aspect.FIRE, 5 );
kiAspects.add( Aspect.AIR, 5 );
// Set KI recipe
Object[] kiRecipe = new Object[] { "IPI", " T ", "ILI", 'I', cdi.IronIngot, 'P', cdi.IlluminatedPanel, 'T', cdi.Thaumonomicon, 'L',
cdi.LogicProcessor };
// Register KI
RecipeRegistry.BLOCK_KNOWLEDGE_INSCRIBER = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey,
KnowledgeInscriber, kiAspects, kiRecipe );
// Arcane Assembler
AspectList assemblerAspects = new AspectList();
// Set Assembler crafting aspects
assemblerAspects.add( Aspect.CRAFT, 64 );
assemblerAspects.add( Aspect.EXCHANGE, 32 );
assemblerAspects.add( Aspect.AURA, 16 );
assemblerAspects.add( Aspect.MAGIC, 16 );
assemblerAspects.add( Aspect.METAL, 8 );
assemblerAspects.add( Aspect.CRYSTAL, 8 );
// Set Assembler recipe
ItemStack[] assemblerRecipe = { CraftingScepter, cdi.AirShard, cdi.EarthShard, cdi.WaterShard, cdi.BallanceShard, cdi.OrderShard,
cdi.EntropyShard, cdi.FireShard };
// Register Assembler
RecipeRegistry.BLOCK_ARCANE_ASSEMBLER = ThaumcraftApi.addInfusionCraftingRecipe( this.researchKey,
ArcaneAssembler, 7, assemblerAspects, cdi.MolecularAssembler, assemblerRecipe );
}
示例7: registerCrafting
import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
@Override
protected void registerCrafting( final CommonDependantItems cdi )
{
// Ore dictionary items
Object WoodGear = "gearWood";
String IronGear = "gearIron";
// Are there any wooden gears?
if( OreDictionary.getOres( "gearWood" ).size() == 0 )
{
// Fall back on a stick :-/
WoodGear = new ItemStack( (Item)Item.itemRegistry.getObject( "stick" ) );
}
// My Items
ItemStack IronGearBox = ThEApi.instance().blocks().IronGearBox.getStack();
ItemStack ThaumiumGearBox = ThEApi.instance().blocks().ThaumiumGearBox.getStack();
ItemStack ThEIronGear = ThEApi.instance().items().IronGear.getStack();
// Set Iron Gear aspects
AspectList ironGearAspects = new AspectList();
ironGearAspects.add( Aspect.EARTH, 1 );
ironGearAspects.add( Aspect.FIRE, 1 );
// Iron Gear recipe
Object[] recipeIronGear = new Object[] { " I ", " W ", "I I", 'I', cdi.IronIngot, 'W', WoodGear };
// Register Iron Gear
RecipeRegistry.MATERIAL_IRON_GEAR = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey, ThEIronGear,
ironGearAspects, recipeIronGear );
// Set Iron Gear Box aspects
AspectList igbAspects = new AspectList();
igbAspects.add( Aspect.AIR, 2 );
igbAspects.add( Aspect.ORDER, 2 );
// Iron Gear Box recipe
Object[] recipeIronGearBox = new Object[] { "SGS", "GGG", "SGS", 'S', cdi.Cobblestone, 'G', IronGear };
RecipeRegistry.BLOCK_IRONGEARBOX = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey, IronGearBox,
igbAspects, recipeIronGearBox );
// Set Thaumium Gear Box aspects
AspectList tgbAspects = new AspectList();
tgbAspects.add( Aspect.METAL, 16 );
tgbAspects.add( Aspect.MAGIC, 16 );
// Register Thaumium Gear Box
RecipeRegistry.BLOCK_THAUMIUMGEARBOX = ThaumcraftApi.addCrucibleRecipe( ResearchRegistry.ResearchTypes.THAUMIUM_GEARBOX.getKey(),
ThaumiumGearBox, IronGearBox, tgbAspects );
}
示例8: registerCrafting
import thaumcraft.api.ThaumcraftApi; //导入方法依赖的package包/类
@Override
protected void registerCrafting( final CommonDependantItems cdi )
{
// My items
ItemStack DiffusionCore = ThEApi.instance().items().DiffusionCore.getStack();
ItemStack CoalescenceCore = ThEApi.instance().items().CoalescenceCore.getStack();
ItemStack EssentiaStorageBus = ThEApi.instance().parts().Essentia_StorageBus.getStack();
// Set Storage Bus aspects
AspectList storageAspectList = new AspectList();
storageAspectList.add( Aspect.FIRE, 3 );
storageAspectList.add( Aspect.EARTH, 3 );
storageAspectList.add( Aspect.WATER, 1 );
// Storage Bus recipe
Object[] recipeStorageBus = new Object[] { true, "DFC", "IWI", 'D', DiffusionCore, 'C', CoalescenceCore, 'I', cdi.IronIngot, 'F',
cdi.FilterTube, 'W', cdi.WardedGlass };
// Register the storage bus
RecipeRegistry.PART_STORAGE_BUS = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey, EssentiaStorageBus,
storageAspectList, recipeStorageBus );
// Is import and export enabled?
if( this.isImportExportEnabled )
{
// My items
ItemStack EssentiaImportBus = ThEApi.instance().parts().Essentia_ImportBus.getStack();
ItemStack EssentiaExportBus = ThEApi.instance().parts().Essentia_ExportBus.getStack();
// Set IO Bus aspects
AspectList ioAspectList = new AspectList();
ioAspectList.add( Aspect.FIRE, 2 );
ioAspectList.add( Aspect.EARTH, 2 );
ioAspectList.add( Aspect.WATER, 1 );
// Import Bus recipe
Object[] recipeImportBus = new Object[] { "JDJ", "IFI", 'J', cdi.WardedJar, 'D', DiffusionCore, 'I', cdi.IronIngot, 'F', cdi.FilterTube };
// Export Bus recipe
Object[] recipeExportBus = new Object[] { "JCJ", "IFI", 'J', cdi.WardedJar, 'C', CoalescenceCore, 'I', cdi.IronIngot, 'F',
cdi.FilterTube };
// Register Import Bus
RecipeRegistry.PART_IMPORT_BUS = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey, EssentiaImportBus,
ioAspectList, recipeImportBus );
// Register Export Bus
RecipeRegistry.PART_EXPORT_BUS = ThaumcraftApi.addArcaneCraftingRecipe( this.researchKey, EssentiaExportBus,
ioAspectList, recipeExportBus );
}
}