本文整理汇总了Java中net.minecraftforge.fml.common.registry.GameRegistry.addSmelting方法的典型用法代码示例。如果您正苦于以下问题:Java GameRegistry.addSmelting方法的具体用法?Java GameRegistry.addSmelting怎么用?Java GameRegistry.addSmelting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraftforge.fml.common.registry.GameRegistry
的用法示例。
在下文中一共展示了GameRegistry.addSmelting方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void init() {
//While static recipes are defined for the empty air canisters, for the recipe book and tools like JEI,
//The following is defined to make them work for any air canister, and transfer the charge to the crafted item.
//TODO dynamically create these, based on the json defined lay-outs, as currently the json recipes are ignored when
//they get changed by resource pack creators.
ForgeRegistries.RECIPES.register(new RecipeGun("dyeYellow", Itemss.VORTEX_CANNON));
ForgeRegistries.RECIPES.register(new RecipeGun("dyeOrange", Itemss.PNEUMATIC_WRENCH));
ForgeRegistries.RECIPES.register(new RecipeGun("dyeRed", Itemss.LOGISTICS_CONFIGURATOR));
ForgeRegistries.RECIPES.register(new RecipeGun("dyeBlue", Itemss.CAMO_APPLICATOR));
ForgeRegistries.RECIPES.register(new RecipePneumaticHelmet());
ForgeRegistries.RECIPES.register(new RecipeManometer());
ForgeRegistries.RECIPES.register(new RecipeAmadronTablet());
ForgeRegistries.RECIPES.register(new RecipeColorDrone());
ForgeRegistries.RECIPES.register(new RecipeLogisticToDrone());
ForgeRegistries.RECIPES.register(new RecipeGunAmmo());
if (ONE_PROBE != null) ForgeRegistries.RECIPES.register(new RecipeOneProbe());
GameRegistry.addSmelting(Itemss.FAILED_PCB, new ItemStack(Itemss.EMPTY_PCB, 1, Itemss.EMPTY_PCB.getMaxDamage()), 0);
addPressureChamberRecipes();
addAssemblyRecipes();
addThermopneumaticProcessingPlantRecipes();
registerAmadronOffers();
addCoolingRecipes();
}
示例2: registerItems
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void registerItems(IForgeRegistry<Item> itemRegistry) {
(tinyDryRubber = new IFCustomItem("tinydryrubber")).register(itemRegistry);
(dryRubber = new IFCustomItem("dryrubber")).register(itemRegistry);
RecipeUtils.addShapelessRecipe(new ItemStack(dryRubber), new ItemStack(tinyDryRubber), new ItemStack(tinyDryRubber), new ItemStack(tinyDryRubber), new ItemStack(tinyDryRubber), new ItemStack(tinyDryRubber), new ItemStack(tinyDryRubber), new ItemStack(tinyDryRubber), new ItemStack(tinyDryRubber), new ItemStack(tinyDryRubber));
(plastic = new IFCustomItem("plastic")).register(itemRegistry);
OreDictionary.registerOre("itemRubber", plastic);
GameRegistry.addSmelting(dryRubber, new ItemStack(plastic), 0);
(fertilizer = new IFCustomItem("fertilizer")).register(itemRegistry);
(meatFeederItem = new MeatFeederItem()).register(itemRegistry);
(mobImprisonmentToolItem = new MobImprisonmentToolItem()).register(itemRegistry);
(laserLensItem = new LaserLensItem(false)).register(itemRegistry);
(laserLensItem_inverted = new LaserLensItem(true)).register(itemRegistry);
(strawItem = new ItemStraw()).register(itemRegistry);
(pinkSlime = new IFCustomItem("pink_slime")).register(itemRegistry);
(bookManualItem = new BookManualItem()).register(itemRegistry);
(adultFilterAddomItem = new AdultFilterAddonItem()).registerItem(itemRegistry);
(rangeAddonItem = new RangeAddonItem()).registerItem(itemRegistry);
(energyFieldAddon = new EnergyFieldAddon()).registerItem(itemRegistry);
(leafShearingAddonItem = new LeafShearingAddonItem()).registerItem(itemRegistry);
meatFeederItem.createRecipe();
mobImprisonmentToolItem.createRecipe();
laserLensItem.createRecipe();
laserLensItem_inverted.createRecipe();
adultFilterAddomItem.createRecipe();
rangeAddonItem.createRecipe();
energyFieldAddon.createRecipe();
bookManualItem.createRecipe();
leafShearingAddonItem.createRecipe();
}
示例3: register
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void register(){
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.emptytincan), ModItems.tiningot, ModItems.tiningot);
GameRegistry.addSmelting(ModItems.emptytincan, new ItemStack(ModItems.tiningot), 0.5F);
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.tinfoil, 2), ModItems.tiningot);
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.toothbrushshiv), ModItems.toothbrush, Items.FLINT);
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.tiningot), ModItems.tinfoil, ModItems.tinfoil, ModItems.tinfoil, ModItems.tinfoil);
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.woodenchunk, 2), ModItems.brokenstick);
GameRegistry.addShapelessRecipe(new ItemStack(Blocks.PLANKS), ModItems.woodenchunk, ModItems.woodenchunk, ModItems.woodenchunk, ModItems.woodenchunk);
// Blocks
GameRegistry.addSmelting(ModBlocks.tinore, new ItemStack(ModItems.tiningot), 1.0F);
GameRegistry.addSmelting(ModBlocks.copperore, new ItemStack(ModItems.copperingot), 1.0F);
GameRegistry.addSmelting(ModBlocks.pyriteore, new ItemStack(ModItems.pyriteingot), 1.0F);
// Tin
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.tinblock), "TTT", "TTT", "TTT", 'T', ModItems.tiningot);
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.tiningot, 9), ModBlocks.tinblock);
// Copper
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.copperblock), "CCC", "CCC", "CCC", 'C', ModItems.copperingot);
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.copperingot, 9), ModBlocks.copperblock);
// Pyrite
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pyriteblock), "PPP", "PPP", "PPP", 'P', ModItems.pyriteingot);
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.pyriteingot, 9), ModBlocks.pyriteblock);
GameRegistry.addShapedRecipe(new ItemStack(ModItems.tinfoilhelmet), "TTT", "TXT", "XXX", 'T', ModItems.tinfoil);
}
示例4: blocks
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void blocks() {
GameRegistry.addSmelting(ModBlocks.silver_ore, new ItemStack(ModItems.silver_ingot, 1), 0.35F);
GameRegistry.addSmelting(Blocks.SAPLING, new ItemStack(ModItems.wood_ash, 4), 0.15F);
GameRegistry.addSmelting(ModItems.silver_scales, new ItemStack(ModItems.silver_nugget, 1), 0.20F);
GameRegistry.addSmelting(Items.MELON, new ItemStack(ModItems.grilled_watermelon, 1), 0.45F);
GameRegistry.addSmelting((new ItemStack(ModItems.fume, 1, 0)), new ItemStack(ModItems.fume, 1, 1), 0.45F);
ModMaterials.TOOL_RITUAL.setRepairItem(new ItemStack(ModItems.silver_ingot));
ModMaterials.ARMOR_SILVER.setRepairItem(new ItemStack(ModItems.silver_ingot));
ModMaterials.TOOL_SILVER.setRepairItem(new ItemStack(ModItems.silver_ingot));
}
示例5: register
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void register() {
GameRegistry.addSmelting(ModBlocks.aluminiumOre, new ItemStack(ModItems.aluminiumIngot), 3.0F);
GameRegistry.addSmelting(ModBlocks.silverOre, new ItemStack(ModItems.silverIngot), 5.0F);
GameRegistry.addSmelting(ModBlocks.amethystOre, new ItemStack(ModItems.amethyst), 6.0F);
GameRegistry.addSmelting(ModBlocks.sapphireOre, new ItemStack(ModItems.sapphire), 7.0F);
GameRegistry.addSmelting(ModBlocks.rubyOre, new ItemStack(ModItems.ruby), 10.0F);
}
示例6: smeltSafely
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
private void smeltSafely(ItemStack input, String oreDictName)
{
try
{
GameRegistry.addSmelting(input, OreDictionary.getOres(oreDictName).get(0), 0.7F);
}
catch (IndexOutOfBoundsException | NullPointerException ex)
{
LOGGER.info(oreDictName + " has not been added already. Smelting has been skipped.");
}
}
示例7: init
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public void init(FMLInitializationEvent event) {
for (int i = 0; i < MooncakeFillingType.VALUES.length; i++) {
GameRegistry.addSmelting(new ItemStack(MooncakeConstants.RAW_MOONCAKE_ITEM, 1, i), new ItemStack(MooncakeConstants.MOONCAKE_ITEM, 1, i), 1.0f);
}
MinecraftForge.addGrassSeed(new ItemStack(MooncakeConstants.SESAME_SEED), 10);
MinecraftForge.addGrassSeed(new ItemStack(MooncakeConstants.PEANUT_SEED), 10);
}
示例8: registerRecipes
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@SubscribeEvent
public static void registerRecipes (RegistryEvent.Register<IRecipe> event) {
IForgeRegistry<IRecipe> registry = event.getRegistry();
OreDictionary.registerOre("ingotWroughtIron", EnumMaterial.WROUGHT_IRON_INGOT.getItemStack(material));
OreDictionary.registerOre("nuggetWroughtIron", EnumMaterial.WROUGHT_IRON_NUGGET.getItemStack(material));
OreDictionary.registerOre("materialWax", EnumMaterial.WAX.getItemStack(material));
OreDictionary.registerOre("materialPressedWax", EnumMaterial.WAX.getItemStack(material));
GameRegistry.addSmelting(EnumMaterial.CANDELILLA.getItemStack(material), EnumMaterial.WAX.getItemStack(material), 0);
}
示例9: recipeSmelting
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void recipeSmelting() {
GameRegistry.addSmelting(ModBlocks.sc_strangeOre, new ItemStack(ModItems.sc_strangeIngot, 1, 0), 1.3F);
GameRegistry.addSmelting(Items.IRON_INGOT, new ItemStack(ModItems.sc_scrapNugget, 5, 0), 0.35F);
GameRegistry.addSmelting(ModItems.sc_scrapIngot, new ItemStack(ModItems.sc_reclaimedNugget, 5, 0), 0.45F);
GameRegistry.addSmelting(ModItems.sc_reclaimedIngot, new ItemStack(ModItems.sc_refinedNugget, 5, 0), 0.55F);
}
示例10: registerFurnaceRecipes
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void registerFurnaceRecipes() {
GameRegistry.addSmelting(new ItemStack(Blocks.SANDSTONE, 1, 0), new ItemStack(ModBlocks.blockRawSandbrick),
10.0F);
GameRegistry.addSmelting(new ItemStack(Blocks.SANDSTONE, 1, 1), new ItemStack(ModBlocks.blockRawSandbrick),
10.0F);
GameRegistry.addSmelting(new ItemStack(Blocks.SANDSTONE, 1, 2), new ItemStack(ModBlocks.blockRawSandbrick),
10.0F);
GameRegistry.addSmelting(new ItemStack(ModItems.itemChipRaw, 1, 0), new ItemStack(ModItems.itemChip, 1, 0),
10.0F);
GameRegistry.addSmelting(new ItemStack(ModItems.itemChipRaw, 1, 1), new ItemStack(ModItems.itemChip, 1, 1),
10.0F);
}
示例11: init
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void init()
{
// Ores
GameRegistry.addSmelting(ItemHolder.ore_vortex, ItemHolder.vortex_clump, 0.7f);
GameRegistry.addSmelting(ItemHolder.ore_nebula, ItemHolder.ingot_nebula, 0.7f);
GameRegistry.addSmelting(ItemHolder.ore_solar, ItemHolder.ingot_solar, 0.7f);
}
示例12: onRecipeRegistry
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@SubscribeEvent
public static void onRecipeRegistry(RegistryEvent.Register<IRecipe> e)
{
//SIMPLE CRAFTING TABLE
register("painting_kit", new ShapelessOreRecipe(null, new ItemStack(ItemRegistry.painting_kit),
"stickWood", "string", Blocks.WOODEN_PRESSURE_PLATE, "dyeBlack", "dyeWhite", "dyeBlue", "dyeYellow", "dyeRed"
), e.getRegistry());
register("gray_paper_pack", new ShapelessOreRecipe(null, new ItemStack(ItemRegistry.gray_paper_pack),
"paper", "paper", "paper", "paper", "paper", "paper", "dyeGray", "dyeGray"
), e.getRegistry());
register("wooden_tablet", new ShapedOreRecipe(null, new ItemStack(ItemRegistry.if_tablet, 1, 0),
"SSS",
"PPP",
" K ",
'S', "slabWood", 'P', ItemRegistry.gray_paper_pack, 'K', ItemRegistry.painting_kit
), e.getRegistry());
register("simple_magibench", new ShapedOreRecipe(null, new ItemStack(ItemRegistry.magibench, 1, 0),
"NNN",
"WWW",
" P ",
'N', "nuggetGold", 'W', "slabWood", 'P', "plankWood"
), e.getRegistry());
//MAGIBENCH
register("pyroblend", new ShapelessOreRecipe(null, new ItemStack(ItemRegistry.pyroblend, 2),
ItemRegistry.verda_wing,
ItemRegistry.brulanta_flower,
new IngredientNBT(SipUtils.getStackWithSip(new ItemStack(ItemRegistry.crystal_shard), "flame")),
ItemRegistry.mortar_and_pestle
), e.getRegistry());
register("unf_mortar_and_pestle", new MagibenchRecipe(ItemRegistry.unfinished_mortar_and_pestle, 0, "mortar_and_pestle",
" |",
"BcB",
" B ",
'c', Items.CLAY_BALL, 'B', Blocks.CLAY, '|', "stickWood"
), e.getRegistry());
register("rope_coil", new MagibenchRecipe(new ItemStack(ItemRegistry.rope_coil, 1, 0), 0, "stone_crusher",
"SSS",
"SWS",
"SSS",
'S', "string", 'W', "plankWood"
), e.getRegistry());
register("cog_rope_coil", new MagibenchRecipe(new ItemStack(ItemRegistry.rope_coil, 1, 1), 0, "stone_crusher",
" | ",
"|C|",
" | ",
'|', "stickWood", 'C', new ItemStack(ItemRegistry.rope_coil, 1, 0)
), e.getRegistry());
register("iron_tinkering_kit_0", new MagibenchRecipe(new ItemStack(ItemRegistry.iron_tinkering_kit_mold, 1, 0), 0, "multiblocks",
"cc ",
"c C",
"cc ",
'c', Items.CLAY_BALL, 'C', Blocks.CLAY
), e.getRegistry());
GameRegistry.addSmelting(new ItemStack(ItemRegistry.iron_tinkering_kit_mold, 1, 0), new ItemStack(ItemRegistry.iron_tinkering_kit_mold, 1, 1), 1.1f);
register("iron_tinkering_kit_2", new MagibenchShapelessRecipe(new ItemStack(ItemRegistry.iron_tinkering_kit_mold, 1, 2), 0, "multiblocks",
new ItemStack(ItemRegistry.iron_tinkering_kit_mold, 1, 1), "nuggetIron", "nuggetIron", "nuggetIron", "nuggetIron", "ingotIron"
), e.getRegistry());
GameRegistry.addSmelting(new ItemStack(ItemRegistry.iron_tinkering_kit_mold, 1, 2), new ItemStack(ItemRegistry.iron_tinkering_kit_mold, 1, 3), 1.1f);
register("iron_tinkering_kit", new MagibenchShapelessRecipe(new ItemStack(ItemRegistry.iron_tinkering_kit), 0, "multiblocks",
new ItemStack(ItemRegistry.iron_tinkering_kit_mold, 1, 3), "stickWood"
), e.getRegistry());
GameRegistry.addSmelting(new ItemStack(ItemRegistry.unfinished_mortar_and_pestle), new ItemStack(ItemRegistry.mortar_and_pestle), 1.1f);
GameRegistry.addSmelting(new ItemStack(ItemRegistry.beetle_meat), new ItemStack(ItemRegistry.beetle_meat, 1, 1), 0.5f);
}
示例13: registerSmelting
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
private void registerSmelting() {
GameRegistry.addSmelting(ItemLoader.magicMatter, new ItemStack(Items.DIAMOND), 0.5F);
GameRegistry.addSmelting(Items.ROTTEN_FLESH, new ItemStack(Items.LEATHER), 0.5F);
}
示例14: doInit
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
protected void doInit(InitPhase phase, ContentHelper helper)
{
GameRegistry.addSmelting(input.getItemStack(), result.getItemStack(), xp);
}
示例15: init
import net.minecraftforge.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void init() {
GameRegistry.addSmelting(ModItems.foodramencold, new ItemStack(ModItems.foodramencooked), .1F);
GameRegistry.addSmelting(ModItems.itemgelatinewet, new ItemStack(ModItems.itemgelatine), .2F);
}