Java 类net.minecraft.item.ItemFishFood 实例源码

项目:DecompiledMinecraft    文件:EntityGuardian.java   
/**
 * Drop 0-2 items of this living's type
 */
protected void dropFewItems(boolean p_70628_1_, int p_70628_2_)
{
    int i = this.rand.nextInt(3) + this.rand.nextInt(p_70628_2_ + 1);

    if (i > 0)
    {
        this.entityDropItem(new ItemStack(Items.prismarine_shard, i, 0), 1.0F);
    }

    if (this.rand.nextInt(3 + p_70628_2_) > 1)
    {
        this.entityDropItem(new ItemStack(Items.fish, 1, ItemFishFood.FishType.COD.getMetadata()), 1.0F);
    }
    else if (this.rand.nextInt(3 + p_70628_2_) > 1)
    {
        this.entityDropItem(new ItemStack(Items.prismarine_crystals, 1, 0), 1.0F);
    }

    if (p_70628_1_ && this.isElder())
    {
        this.entityDropItem(new ItemStack(Blocks.sponge, 1, 1), 1.0F);
    }
}
项目:DecompiledMinecraft    文件:EntityGuardian.java   
/**
 * Drop 0-2 items of this living's type
 */
protected void dropFewItems(boolean p_70628_1_, int p_70628_2_)
{
    int i = this.rand.nextInt(3) + this.rand.nextInt(p_70628_2_ + 1);

    if (i > 0)
    {
        this.entityDropItem(new ItemStack(Items.prismarine_shard, i, 0), 1.0F);
    }

    if (this.rand.nextInt(3 + p_70628_2_) > 1)
    {
        this.entityDropItem(new ItemStack(Items.fish, 1, ItemFishFood.FishType.COD.getMetadata()), 1.0F);
    }
    else if (this.rand.nextInt(3 + p_70628_2_) > 1)
    {
        this.entityDropItem(new ItemStack(Items.prismarine_crystals, 1, 0), 1.0F);
    }

    if (p_70628_1_ && this.isElder())
    {
        this.entityDropItem(new ItemStack(Blocks.sponge, 1, 1), 1.0F);
    }
}
项目:BaseClient    文件:EntityGuardian.java   
/**
 * Drop 0-2 items of this living's type
 */
protected void dropFewItems(boolean p_70628_1_, int p_70628_2_)
{
    int i = this.rand.nextInt(3) + this.rand.nextInt(p_70628_2_ + 1);

    if (i > 0)
    {
        this.entityDropItem(new ItemStack(Items.prismarine_shard, i, 0), 1.0F);
    }

    if (this.rand.nextInt(3 + p_70628_2_) > 1)
    {
        this.entityDropItem(new ItemStack(Items.fish, 1, ItemFishFood.FishType.COD.getMetadata()), 1.0F);
    }
    else if (this.rand.nextInt(3 + p_70628_2_) > 1)
    {
        this.entityDropItem(new ItemStack(Items.prismarine_crystals, 1, 0), 1.0F);
    }

    if (p_70628_1_ && this.isElder())
    {
        this.entityDropItem(new ItemStack(Blocks.sponge, 1, 1), 1.0F);
    }
}
项目:BaseClient    文件:EntityGuardian.java   
/**
 * Drop 0-2 items of this living's type
 */
protected void dropFewItems(boolean p_70628_1_, int p_70628_2_)
{
    int i = this.rand.nextInt(3) + this.rand.nextInt(p_70628_2_ + 1);

    if (i > 0)
    {
        this.entityDropItem(new ItemStack(Items.prismarine_shard, i, 0), 1.0F);
    }

    if (this.rand.nextInt(3 + p_70628_2_) > 1)
    {
        this.entityDropItem(new ItemStack(Items.fish, 1, ItemFishFood.FishType.COD.getMetadata()), 1.0F);
    }
    else if (this.rand.nextInt(3 + p_70628_2_) > 1)
    {
        this.entityDropItem(new ItemStack(Items.prismarine_crystals, 1, 0), 1.0F);
    }

    if (p_70628_1_ && this.isElder())
    {
        this.entityDropItem(new ItemStack(Blocks.sponge, 1, 1), 1.0F);
    }
}
项目:Cyclic    文件:EntityFishingBolt.java   
private ItemStack getRandomFish() {
  ItemStack fishSpawned = null;
  // below is from MY BlockFishing.java in the unreleased ./FarmingBlocks/
  double diceRoll = rand.nextDouble() * 100;
  if (diceRoll < plainChance) {
    fishSpawned = new ItemStack(Items.FISH, 1, ItemFishFood.FishType.COD.getMetadata()); // plain
  }
  else if (diceRoll < salmonChance) {
    fishSpawned = new ItemStack(Items.FISH, 1, ItemFishFood.FishType.SALMON.getMetadata());// salmon
  }
  else if (diceRoll < clownfishChance) {
    fishSpawned = new ItemStack(Items.FISH, 1, ItemFishFood.FishType.CLOWNFISH.getMetadata());// clown
  }
  else {
    fishSpawned = new ItemStack(Items.FISH, 1, ItemFishFood.FishType.PUFFERFISH.getMetadata());// puffer
  }
  return fishSpawned;
}
项目:Cyclic    文件:BlockFishing.java   
@Override
public IRecipe addRecipe() {
  RecipeRegistry.addShapedRecipe(new ItemStack(this),
      "pwp",
      "wfw",
      "pwp",
      'w', Blocks.WEB,
      'f', new ItemStack(Items.FISH, 1, ItemFishFood.FishType.PUFFERFISH.getMetadata()),
      'p', "chestTrapped");
  return RecipeRegistry.addShapedRecipe(new ItemStack(this),
      "pwp",
      "wfw",
      "pwp",
      'w', Blocks.WEB,
      'f', new ItemStack(Items.FISH, 1, ItemFishFood.FishType.CLOWNFISH.getMetadata()),
      'p', "chestTrapped");
}
项目:IgnitionUtilities    文件:PurifierRecipes.java   
private PurifierRecipes()
{
    this.func_151396_a(Items.reeds, new ItemStack(Items.sugar, 4), 0.7F);
    this.func_151396_a(Items.reeds, new ItemStack(Items.sugar, 6), 0.7F);
    ItemFishFood.FishType[] afishtype = ItemFishFood.FishType.values();
    int i = afishtype.length;

    for (int j = 0; j < i; ++j)
    {
        ItemFishFood.FishType fishtype = afishtype[j];

        if (fishtype.func_150973_i())
        {
            this.func_151394_a(new ItemStack(Items.fish, 1, fishtype.func_150976_a()), new ItemStack(Items.cooked_fished, 1, fishtype.func_150976_a()), 0.35F);
        }
    }

 //  this.addRecipe(Blocks.coal_ore, new ItemStack(Items.coal), 0.1F);
 //  this.addRecipe(Blocks.redstone_ore, new ItemStack(Items.redstone), 0.7F);
 //  this.addRecipe(Blocks.lapis_ore, new ItemStack(Items.dye, 1, 4), 0.2F);
 //  this.addRecipe(Blocks.quartz_ore, new ItemStack(Items.quartz), 0.2F);
}
项目:DecompiledMinecraft    文件:FurnaceRecipes.java   
private FurnaceRecipes()
{
    this.addSmeltingRecipeForBlock(Blocks.iron_ore, new ItemStack(Items.iron_ingot), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.gold_ore, new ItemStack(Items.gold_ingot), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.diamond_ore, new ItemStack(Items.diamond), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.sand, new ItemStack(Blocks.glass), 0.1F);
    this.addSmelting(Items.porkchop, new ItemStack(Items.cooked_porkchop), 0.35F);
    this.addSmelting(Items.beef, new ItemStack(Items.cooked_beef), 0.35F);
    this.addSmelting(Items.chicken, new ItemStack(Items.cooked_chicken), 0.35F);
    this.addSmelting(Items.rabbit, new ItemStack(Items.cooked_rabbit), 0.35F);
    this.addSmelting(Items.mutton, new ItemStack(Items.cooked_mutton), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.cobblestone, new ItemStack(Blocks.stone), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.DEFAULT_META), new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.CRACKED_META), 0.1F);
    this.addSmelting(Items.clay_ball, new ItemStack(Items.brick), 0.3F);
    this.addSmeltingRecipeForBlock(Blocks.clay, new ItemStack(Blocks.hardened_clay), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.cactus, new ItemStack(Items.dye, 1, EnumDyeColor.GREEN.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.log, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.log2, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.emerald_ore, new ItemStack(Items.emerald), 1.0F);
    this.addSmelting(Items.potato, new ItemStack(Items.baked_potato), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.netherrack, new ItemStack(Items.netherbrick), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.sponge, 1, 1), new ItemStack(Blocks.sponge, 1, 0), 0.15F);

    for (ItemFishFood.FishType itemfishfood$fishtype : ItemFishFood.FishType.values())
    {
        if (itemfishfood$fishtype.canCook())
        {
            this.addSmeltingRecipe(new ItemStack(Items.fish, 1, itemfishfood$fishtype.getMetadata()), new ItemStack(Items.cooked_fish, 1, itemfishfood$fishtype.getMetadata()), 0.35F);
        }
    }

    this.addSmeltingRecipeForBlock(Blocks.coal_ore, new ItemStack(Items.coal), 0.1F);
    this.addSmeltingRecipeForBlock(Blocks.redstone_ore, new ItemStack(Items.redstone), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.lapis_ore, new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.quartz_ore, new ItemStack(Items.quartz), 0.2F);
}
项目:DecompiledMinecraft    文件:FurnaceRecipes.java   
private FurnaceRecipes()
{
    this.addSmeltingRecipeForBlock(Blocks.iron_ore, new ItemStack(Items.iron_ingot), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.gold_ore, new ItemStack(Items.gold_ingot), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.diamond_ore, new ItemStack(Items.diamond), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.sand, new ItemStack(Blocks.glass), 0.1F);
    this.addSmelting(Items.porkchop, new ItemStack(Items.cooked_porkchop), 0.35F);
    this.addSmelting(Items.beef, new ItemStack(Items.cooked_beef), 0.35F);
    this.addSmelting(Items.chicken, new ItemStack(Items.cooked_chicken), 0.35F);
    this.addSmelting(Items.rabbit, new ItemStack(Items.cooked_rabbit), 0.35F);
    this.addSmelting(Items.mutton, new ItemStack(Items.cooked_mutton), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.cobblestone, new ItemStack(Blocks.stone), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.DEFAULT_META), new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.CRACKED_META), 0.1F);
    this.addSmelting(Items.clay_ball, new ItemStack(Items.brick), 0.3F);
    this.addSmeltingRecipeForBlock(Blocks.clay, new ItemStack(Blocks.hardened_clay), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.cactus, new ItemStack(Items.dye, 1, EnumDyeColor.GREEN.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.log, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.log2, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.emerald_ore, new ItemStack(Items.emerald), 1.0F);
    this.addSmelting(Items.potato, new ItemStack(Items.baked_potato), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.netherrack, new ItemStack(Items.netherbrick), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.sponge, 1, 1), new ItemStack(Blocks.sponge, 1, 0), 0.15F);

    for (ItemFishFood.FishType itemfishfood$fishtype : ItemFishFood.FishType.values())
    {
        if (itemfishfood$fishtype.canCook())
        {
            this.addSmeltingRecipe(new ItemStack(Items.fish, 1, itemfishfood$fishtype.getMetadata()), new ItemStack(Items.cooked_fish, 1, itemfishfood$fishtype.getMetadata()), 0.35F);
        }
    }

    this.addSmeltingRecipeForBlock(Blocks.coal_ore, new ItemStack(Items.coal), 0.1F);
    this.addSmeltingRecipeForBlock(Blocks.redstone_ore, new ItemStack(Items.redstone), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.lapis_ore, new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.quartz_ore, new ItemStack(Items.quartz), 0.2F);
}
项目:BaseClient    文件:FurnaceRecipes.java   
private FurnaceRecipes()
{
    this.addSmeltingRecipeForBlock(Blocks.iron_ore, new ItemStack(Items.iron_ingot), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.gold_ore, new ItemStack(Items.gold_ingot), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.diamond_ore, new ItemStack(Items.diamond), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.sand, new ItemStack(Blocks.glass), 0.1F);
    this.addSmelting(Items.porkchop, new ItemStack(Items.cooked_porkchop), 0.35F);
    this.addSmelting(Items.beef, new ItemStack(Items.cooked_beef), 0.35F);
    this.addSmelting(Items.chicken, new ItemStack(Items.cooked_chicken), 0.35F);
    this.addSmelting(Items.rabbit, new ItemStack(Items.cooked_rabbit), 0.35F);
    this.addSmelting(Items.mutton, new ItemStack(Items.cooked_mutton), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.cobblestone, new ItemStack(Blocks.stone), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.DEFAULT_META), new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.CRACKED_META), 0.1F);
    this.addSmelting(Items.clay_ball, new ItemStack(Items.brick), 0.3F);
    this.addSmeltingRecipeForBlock(Blocks.clay, new ItemStack(Blocks.hardened_clay), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.cactus, new ItemStack(Items.dye, 1, EnumDyeColor.GREEN.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.log, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.log2, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.emerald_ore, new ItemStack(Items.emerald), 1.0F);
    this.addSmelting(Items.potato, new ItemStack(Items.baked_potato), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.netherrack, new ItemStack(Items.netherbrick), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.sponge, 1, 1), new ItemStack(Blocks.sponge, 1, 0), 0.15F);

    for (ItemFishFood.FishType itemfishfood$fishtype : ItemFishFood.FishType.values())
    {
        if (itemfishfood$fishtype.canCook())
        {
            this.addSmeltingRecipe(new ItemStack(Items.fish, 1, itemfishfood$fishtype.getMetadata()), new ItemStack(Items.cooked_fish, 1, itemfishfood$fishtype.getMetadata()), 0.35F);
        }
    }

    this.addSmeltingRecipeForBlock(Blocks.coal_ore, new ItemStack(Items.coal), 0.1F);
    this.addSmeltingRecipeForBlock(Blocks.redstone_ore, new ItemStack(Items.redstone), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.lapis_ore, new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.quartz_ore, new ItemStack(Items.quartz), 0.2F);
}
项目:BaseClient    文件:FurnaceRecipes.java   
private FurnaceRecipes()
{
    this.addSmeltingRecipeForBlock(Blocks.iron_ore, new ItemStack(Items.iron_ingot), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.gold_ore, new ItemStack(Items.gold_ingot), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.diamond_ore, new ItemStack(Items.diamond), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.sand, new ItemStack(Blocks.glass), 0.1F);
    this.addSmelting(Items.porkchop, new ItemStack(Items.cooked_porkchop), 0.35F);
    this.addSmelting(Items.beef, new ItemStack(Items.cooked_beef), 0.35F);
    this.addSmelting(Items.chicken, new ItemStack(Items.cooked_chicken), 0.35F);
    this.addSmelting(Items.rabbit, new ItemStack(Items.cooked_rabbit), 0.35F);
    this.addSmelting(Items.mutton, new ItemStack(Items.cooked_mutton), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.cobblestone, new ItemStack(Blocks.stone), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.DEFAULT_META), new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.CRACKED_META), 0.1F);
    this.addSmelting(Items.clay_ball, new ItemStack(Items.brick), 0.3F);
    this.addSmeltingRecipeForBlock(Blocks.clay, new ItemStack(Blocks.hardened_clay), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.cactus, new ItemStack(Items.dye, 1, EnumDyeColor.GREEN.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.log, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.log2, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.emerald_ore, new ItemStack(Items.emerald), 1.0F);
    this.addSmelting(Items.potato, new ItemStack(Items.baked_potato), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.netherrack, new ItemStack(Items.netherbrick), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.sponge, 1, 1), new ItemStack(Blocks.sponge, 1, 0), 0.15F);

    for (ItemFishFood.FishType itemfishfood$fishtype : ItemFishFood.FishType.values())
    {
        if (itemfishfood$fishtype.canCook())
        {
            this.addSmeltingRecipe(new ItemStack(Items.fish, 1, itemfishfood$fishtype.getMetadata()), new ItemStack(Items.cooked_fish, 1, itemfishfood$fishtype.getMetadata()), 0.35F);
        }
    }

    this.addSmeltingRecipeForBlock(Blocks.coal_ore, new ItemStack(Items.coal), 0.1F);
    this.addSmeltingRecipeForBlock(Blocks.redstone_ore, new ItemStack(Items.redstone), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.lapis_ore, new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.quartz_ore, new ItemStack(Items.quartz), 0.2F);
}
项目:CustomWorldGen    文件:FurnaceRecipes.java   
private FurnaceRecipes()
{
    this.addSmeltingRecipeForBlock(Blocks.IRON_ORE, new ItemStack(Items.IRON_INGOT), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.GOLD_ORE, new ItemStack(Items.GOLD_INGOT), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.DIAMOND_ORE, new ItemStack(Items.DIAMOND), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.SAND, new ItemStack(Blocks.GLASS), 0.1F);
    this.addSmelting(Items.PORKCHOP, new ItemStack(Items.COOKED_PORKCHOP), 0.35F);
    this.addSmelting(Items.BEEF, new ItemStack(Items.COOKED_BEEF), 0.35F);
    this.addSmelting(Items.CHICKEN, new ItemStack(Items.COOKED_CHICKEN), 0.35F);
    this.addSmelting(Items.RABBIT, new ItemStack(Items.COOKED_RABBIT), 0.35F);
    this.addSmelting(Items.MUTTON, new ItemStack(Items.COOKED_MUTTON), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.COBBLESTONE, new ItemStack(Blocks.STONE), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.STONEBRICK, 1, BlockStoneBrick.DEFAULT_META), new ItemStack(Blocks.STONEBRICK, 1, BlockStoneBrick.CRACKED_META), 0.1F);
    this.addSmelting(Items.CLAY_BALL, new ItemStack(Items.BRICK), 0.3F);
    this.addSmeltingRecipeForBlock(Blocks.CLAY, new ItemStack(Blocks.HARDENED_CLAY), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.CACTUS, new ItemStack(Items.DYE, 1, EnumDyeColor.GREEN.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.LOG, new ItemStack(Items.COAL, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.LOG2, new ItemStack(Items.COAL, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.EMERALD_ORE, new ItemStack(Items.EMERALD), 1.0F);
    this.addSmelting(Items.POTATO, new ItemStack(Items.BAKED_POTATO), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.NETHERRACK, new ItemStack(Items.NETHERBRICK), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.SPONGE, 1, 1), new ItemStack(Blocks.SPONGE, 1, 0), 0.15F);
    this.addSmelting(Items.CHORUS_FRUIT, new ItemStack(Items.CHORUS_FRUIT_POPPED), 0.1F);

    for (ItemFishFood.FishType itemfishfood$fishtype : ItemFishFood.FishType.values())
    {
        if (itemfishfood$fishtype.canCook())
        {
            this.addSmeltingRecipe(new ItemStack(Items.FISH, 1, itemfishfood$fishtype.getMetadata()), new ItemStack(Items.COOKED_FISH, 1, itemfishfood$fishtype.getMetadata()), 0.35F);
        }
    }

    this.addSmeltingRecipeForBlock(Blocks.COAL_ORE, new ItemStack(Items.COAL), 0.1F);
    this.addSmeltingRecipeForBlock(Blocks.REDSTONE_ORE, new ItemStack(Items.REDSTONE), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.LAPIS_ORE, new ItemStack(Items.DYE, 1, EnumDyeColor.BLUE.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.QUARTZ_ORE, new ItemStack(Items.QUARTZ), 0.2F);
}
项目:LittleThings-old    文件:StoveRecipes.java   
private StoveRecipes()
{
    this.addRecipe(new ItemStack(Items.egg), new ItemStack(ModItems.FriedEgg));
    for (ItemFishFood.FishType fish : ItemFishFood.FishType.values()) {
        if (fish.canCook()) {
            this.addRecipe(new ItemStack(Items.fish, 1, fish.getMetadata()), new ItemStack(Items.cooked_fish, 1, fish.getMetadata()));
        }
    }
}
项目:Culinary-Cultivation    文件:ItemModFishFood.java   
@Override
public void getOreDictEntries() {
    for (FishType fishtype : FishType.values()) {
        int metadata = fishtype.getMetadata();
        String name = fishtype.getFishName();
        if (fishtype.isHaveRawFish() && metadata != FishType.FILLET.getMetadata() && metadata != FishType.SMALL_SQUID.getMetadata()) {
            OreDictHelper.add(ModItems.FISH, metadata, "filletFish");
            OreDictHelper.add(ModItems.FISH, metadata, "fish");
        }
        OreDictHelper.add(ModItems.FISH, metadata, "food", name + "Raw");
        OreDictHelper.add(ModItems.COOKED_FISH, metadata, "food", name + "Cooked");
    }
    OreDictHelper.add("filletFish", new ItemStack(Items.FISH, 1, ItemFishFood.FishType.COD.getMetadata()), new ItemStack(Items.FISH, 1, ItemFishFood.FishType.SALMON.getMetadata()), new ItemStack(Items.FISH, 1, ItemFishFood.FishType.CLOWNFISH.getMetadata()));
}
项目:Cyclic    文件:VillagerCreateModule.java   
private EntityVillager.ITradeList[][] buildSageTrades() {
  return new EntityVillager.ITradeList[][] {
      {
          new EmeraldForItems(Items.GUNPOWDER, new PriceInfo(5, 8)), //GROUP 1
          new EmeraldForItems(Items.NETHER_WART, new PriceInfo(12, 16))
      }, {
          new EmeraldForItems(Items.BONE, new PriceInfo(8, 16)), //GROUP 2
          new EmeraldForItems(Items.MUTTON, new PriceInfo(4, 12))
      }, {
          new EmeraldForItems(Items.BLAZE_ROD, new PriceInfo(8, 16)), //GROUP 3
          new EmeraldForItems(Items.SLIME_BALL, new PriceInfo(8, 16))
      }, {
          new EmeraldForItems(Items.GHAST_TEAR, new PriceInfo(1, 2)), //GROUP 4
          new EmeraldForItems(Items.REDSTONE, new PriceInfo(4, 6))
      }, {
          new EmeraldForItems(Items.GLOWSTONE_DUST, new PriceInfo(6, 8)), //GROUP 5
          new EmeraldForItems(Items.DIAMOND, new PriceInfo(8, 12)),
          new EmeraldForItems(Items.ENDER_PEARL, new PriceInfo(12, 16))
      }, {
          new ListItemForEmeraldsFixed(new ItemStack(Items.EXPERIENCE_BOTTLE, 8), new PriceInfo(1, 4)), //GROUP 6
          new ListItemForEmeraldsFixed(new ItemStack(Blocks.CLAY, 16), new PriceInfo(1, 1)),
      }, {
          new ListItemForEmeraldsFixed(new ItemStack(Blocks.QUARTZ_BLOCK, 16), new PriceInfo(2, 4)), //GROUP 7
          new ListItemForEmeraldsFixed(new ItemStack(Blocks.OBSIDIAN, 16), new PriceInfo(2, 4)),
          new ListItemForEmeraldsFixed(new ItemStack(Items.FISH, 4, ItemFishFood.FishType.PUFFERFISH.getMetadata()), new PriceInfo(1, 2)),
      }
  };
}
项目:Resilience-Client-Source    文件:FurnaceRecipes.java   
private FurnaceRecipes()
{
    this.func_151393_a(Blocks.iron_ore, new ItemStack(Items.iron_ingot), 0.7F);
    this.func_151393_a(Blocks.gold_ore, new ItemStack(Items.gold_ingot), 1.0F);
    this.func_151393_a(Blocks.diamond_ore, new ItemStack(Items.diamond), 1.0F);
    this.func_151393_a(Blocks.sand, new ItemStack(Blocks.glass), 0.1F);
    this.func_151396_a(Items.porkchop, new ItemStack(Items.cooked_porkchop), 0.35F);
    this.func_151396_a(Items.beef, new ItemStack(Items.cooked_beef), 0.35F);
    this.func_151396_a(Items.chicken, new ItemStack(Items.cooked_chicken), 0.35F);
    this.func_151393_a(Blocks.cobblestone, new ItemStack(Blocks.stone), 0.1F);
    this.func_151396_a(Items.clay_ball, new ItemStack(Items.brick), 0.3F);
    this.func_151393_a(Blocks.clay, new ItemStack(Blocks.hardened_clay), 0.35F);
    this.func_151393_a(Blocks.cactus, new ItemStack(Items.dye, 1, 2), 0.2F);
    this.func_151393_a(Blocks.log, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.func_151393_a(Blocks.log2, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.func_151393_a(Blocks.emerald_ore, new ItemStack(Items.emerald), 1.0F);
    this.func_151396_a(Items.potato, new ItemStack(Items.baked_potato), 0.35F);
    this.func_151393_a(Blocks.netherrack, new ItemStack(Items.netherbrick), 0.1F);
    ItemFishFood.FishType[] var1 = ItemFishFood.FishType.values();
    int var2 = var1.length;

    for (int var3 = 0; var3 < var2; ++var3)
    {
        ItemFishFood.FishType var4 = var1[var3];

        if (var4.func_150973_i())
        {
            this.func_151394_a(new ItemStack(Items.fish, 1, var4.func_150976_a()), new ItemStack(Items.cooked_fished, 1, var4.func_150976_a()), 0.35F);
        }
    }

    this.func_151393_a(Blocks.coal_ore, new ItemStack(Items.coal), 0.1F);
    this.func_151393_a(Blocks.redstone_ore, new ItemStack(Items.redstone), 0.7F);
    this.func_151393_a(Blocks.lapis_ore, new ItemStack(Items.dye, 1, 4), 0.2F);
    this.func_151393_a(Blocks.quartz_ore, new ItemStack(Items.quartz), 0.2F);
}
项目:ExpandedRailsMod    文件:FurnaceRecipes.java   
private FurnaceRecipes()
{
    this.addSmeltingRecipeForBlock(Blocks.IRON_ORE, new ItemStack(Items.IRON_INGOT), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.GOLD_ORE, new ItemStack(Items.GOLD_INGOT), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.DIAMOND_ORE, new ItemStack(Items.DIAMOND), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.SAND, new ItemStack(Blocks.GLASS), 0.1F);
    this.addSmelting(Items.PORKCHOP, new ItemStack(Items.COOKED_PORKCHOP), 0.35F);
    this.addSmelting(Items.BEEF, new ItemStack(Items.COOKED_BEEF), 0.35F);
    this.addSmelting(Items.CHICKEN, new ItemStack(Items.COOKED_CHICKEN), 0.35F);
    this.addSmelting(Items.RABBIT, new ItemStack(Items.COOKED_RABBIT), 0.35F);
    this.addSmelting(Items.MUTTON, new ItemStack(Items.COOKED_MUTTON), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.COBBLESTONE, new ItemStack(Blocks.STONE), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.STONEBRICK, 1, BlockStoneBrick.DEFAULT_META), new ItemStack(Blocks.STONEBRICK, 1, BlockStoneBrick.CRACKED_META), 0.1F);
    this.addSmelting(Items.CLAY_BALL, new ItemStack(Items.BRICK), 0.3F);
    this.addSmeltingRecipeForBlock(Blocks.CLAY, new ItemStack(Blocks.HARDENED_CLAY), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.CACTUS, new ItemStack(Items.DYE, 1, EnumDyeColor.GREEN.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.LOG, new ItemStack(Items.COAL, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.LOG2, new ItemStack(Items.COAL, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.EMERALD_ORE, new ItemStack(Items.EMERALD), 1.0F);
    this.addSmelting(Items.POTATO, new ItemStack(Items.BAKED_POTATO), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.NETHERRACK, new ItemStack(Items.NETHERBRICK), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.SPONGE, 1, 1), new ItemStack(Blocks.SPONGE, 1, 0), 0.15F);
    this.addSmelting(Items.CHORUS_FRUIT, new ItemStack(Items.CHORUS_FRUIT_POPPED), 0.1F);

    for (ItemFishFood.FishType itemfishfood$fishtype : ItemFishFood.FishType.values())
    {
        if (itemfishfood$fishtype.canCook())
        {
            this.addSmeltingRecipe(new ItemStack(Items.FISH, 1, itemfishfood$fishtype.getMetadata()), new ItemStack(Items.COOKED_FISH, 1, itemfishfood$fishtype.getMetadata()), 0.35F);
        }
    }

    this.addSmeltingRecipeForBlock(Blocks.COAL_ORE, new ItemStack(Items.COAL), 0.1F);
    this.addSmeltingRecipeForBlock(Blocks.REDSTONE_ORE, new ItemStack(Items.REDSTONE), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.LAPIS_ORE, new ItemStack(Items.DYE, 1, EnumDyeColor.BLUE.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.QUARTZ_ORE, new ItemStack(Items.QUARTZ), 0.2F);
}
项目:Cauldron    文件:FurnaceRecipes.java   
public FurnaceRecipes()   // CraftBukkit - private -> public
{
    this.func_151393_a(Blocks.iron_ore, new ItemStack(Items.iron_ingot), 0.7F);
    this.func_151393_a(Blocks.gold_ore, new ItemStack(Items.gold_ingot), 1.0F);
    this.func_151393_a(Blocks.diamond_ore, new ItemStack(Items.diamond), 1.0F);
    this.func_151393_a(Blocks.sand, new ItemStack(Blocks.glass), 0.1F);
    this.func_151396_a(Items.porkchop, new ItemStack(Items.cooked_porkchop), 0.35F);
    this.func_151396_a(Items.beef, new ItemStack(Items.cooked_beef), 0.35F);
    this.func_151396_a(Items.chicken, new ItemStack(Items.cooked_chicken), 0.35F);
    this.func_151393_a(Blocks.cobblestone, new ItemStack(Blocks.stone), 0.1F);
    this.func_151396_a(Items.clay_ball, new ItemStack(Items.brick), 0.3F);
    this.func_151393_a(Blocks.clay, new ItemStack(Blocks.hardened_clay), 0.35F);
    this.func_151393_a(Blocks.cactus, new ItemStack(Items.dye, 1, 2), 0.2F);
    this.func_151393_a(Blocks.log, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.func_151393_a(Blocks.log2, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.func_151393_a(Blocks.emerald_ore, new ItemStack(Items.emerald), 1.0F);
    this.func_151396_a(Items.potato, new ItemStack(Items.baked_potato), 0.35F);
    this.func_151393_a(Blocks.netherrack, new ItemStack(Items.netherbrick), 0.1F);
    ItemFishFood.FishType[] afishtype = ItemFishFood.FishType.values();
    int i = afishtype.length;

    for (int j = 0; j < i; ++j)
    {
        ItemFishFood.FishType fishtype = afishtype[j];

        if (fishtype.func_150973_i())
        {
            this.func_151394_a(new ItemStack(Items.fish, 1, fishtype.func_150976_a()), new ItemStack(Items.cooked_fished, 1, fishtype.func_150976_a()), 0.35F);
        }
    }

    this.func_151393_a(Blocks.coal_ore, new ItemStack(Items.coal), 0.1F);
    this.func_151393_a(Blocks.redstone_ore, new ItemStack(Items.redstone), 0.7F);
    this.func_151393_a(Blocks.lapis_ore, new ItemStack(Items.dye, 1, 4), 0.2F);
    this.func_151393_a(Blocks.quartz_ore, new ItemStack(Items.quartz), 0.2F);
}
项目:Cauldron    文件:FurnaceRecipes.java   
private FurnaceRecipes()
{
    this.func_151393_a(Blocks.iron_ore, new ItemStack(Items.iron_ingot), 0.7F);
    this.func_151393_a(Blocks.gold_ore, new ItemStack(Items.gold_ingot), 1.0F);
    this.func_151393_a(Blocks.diamond_ore, new ItemStack(Items.diamond), 1.0F);
    this.func_151393_a(Blocks.sand, new ItemStack(Blocks.glass), 0.1F);
    this.func_151396_a(Items.porkchop, new ItemStack(Items.cooked_porkchop), 0.35F);
    this.func_151396_a(Items.beef, new ItemStack(Items.cooked_beef), 0.35F);
    this.func_151396_a(Items.chicken, new ItemStack(Items.cooked_chicken), 0.35F);
    this.func_151393_a(Blocks.cobblestone, new ItemStack(Blocks.stone), 0.1F);
    this.func_151396_a(Items.clay_ball, new ItemStack(Items.brick), 0.3F);
    this.func_151393_a(Blocks.clay, new ItemStack(Blocks.hardened_clay), 0.35F);
    this.func_151393_a(Blocks.cactus, new ItemStack(Items.dye, 1, 2), 0.2F);
    this.func_151393_a(Blocks.log, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.func_151393_a(Blocks.log2, new ItemStack(Items.coal, 1, 1), 0.15F);
    this.func_151393_a(Blocks.emerald_ore, new ItemStack(Items.emerald), 1.0F);
    this.func_151396_a(Items.potato, new ItemStack(Items.baked_potato), 0.35F);
    this.func_151393_a(Blocks.netherrack, new ItemStack(Items.netherbrick), 0.1F);
    ItemFishFood.FishType[] afishtype = ItemFishFood.FishType.values();
    int i = afishtype.length;

    for (int j = 0; j < i; ++j)
    {
        ItemFishFood.FishType fishtype = afishtype[j];

        if (fishtype.func_150973_i())
        {
            this.func_151394_a(new ItemStack(Items.fish, 1, fishtype.func_150976_a()), new ItemStack(Items.cooked_fished, 1, fishtype.func_150976_a()), 0.35F);
        }
    }

    this.func_151393_a(Blocks.coal_ore, new ItemStack(Items.coal), 0.1F);
    this.func_151393_a(Blocks.redstone_ore, new ItemStack(Items.redstone), 0.7F);
    this.func_151393_a(Blocks.lapis_ore, new ItemStack(Items.dye, 1, 4), 0.2F);
    this.func_151393_a(Blocks.quartz_ore, new ItemStack(Items.quartz), 0.2F);
}
项目:Backmemed    文件:FurnaceRecipes.java   
private FurnaceRecipes()
{
    this.addSmeltingRecipeForBlock(Blocks.IRON_ORE, new ItemStack(Items.IRON_INGOT), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.GOLD_ORE, new ItemStack(Items.GOLD_INGOT), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.DIAMOND_ORE, new ItemStack(Items.DIAMOND), 1.0F);
    this.addSmeltingRecipeForBlock(Blocks.SAND, new ItemStack(Blocks.GLASS), 0.1F);
    this.addSmelting(Items.PORKCHOP, new ItemStack(Items.COOKED_PORKCHOP), 0.35F);
    this.addSmelting(Items.BEEF, new ItemStack(Items.COOKED_BEEF), 0.35F);
    this.addSmelting(Items.CHICKEN, new ItemStack(Items.COOKED_CHICKEN), 0.35F);
    this.addSmelting(Items.RABBIT, new ItemStack(Items.COOKED_RABBIT), 0.35F);
    this.addSmelting(Items.MUTTON, new ItemStack(Items.COOKED_MUTTON), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.COBBLESTONE, new ItemStack(Blocks.STONE), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.STONEBRICK, 1, BlockStoneBrick.DEFAULT_META), new ItemStack(Blocks.STONEBRICK, 1, BlockStoneBrick.CRACKED_META), 0.1F);
    this.addSmelting(Items.CLAY_BALL, new ItemStack(Items.BRICK), 0.3F);
    this.addSmeltingRecipeForBlock(Blocks.CLAY, new ItemStack(Blocks.HARDENED_CLAY), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.CACTUS, new ItemStack(Items.DYE, 1, EnumDyeColor.GREEN.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.LOG, new ItemStack(Items.COAL, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.LOG2, new ItemStack(Items.COAL, 1, 1), 0.15F);
    this.addSmeltingRecipeForBlock(Blocks.EMERALD_ORE, new ItemStack(Items.EMERALD), 1.0F);
    this.addSmelting(Items.POTATO, new ItemStack(Items.BAKED_POTATO), 0.35F);
    this.addSmeltingRecipeForBlock(Blocks.NETHERRACK, new ItemStack(Items.NETHERBRICK), 0.1F);
    this.addSmeltingRecipe(new ItemStack(Blocks.SPONGE, 1, 1), new ItemStack(Blocks.SPONGE, 1, 0), 0.15F);
    this.addSmelting(Items.CHORUS_FRUIT, new ItemStack(Items.CHORUS_FRUIT_POPPED), 0.1F);

    for (ItemFishFood.FishType itemfishfood$fishtype : ItemFishFood.FishType.values())
    {
        if (itemfishfood$fishtype.canCook())
        {
            this.addSmeltingRecipe(new ItemStack(Items.FISH, 1, itemfishfood$fishtype.getMetadata()), new ItemStack(Items.COOKED_FISH, 1, itemfishfood$fishtype.getMetadata()), 0.35F);
        }
    }

    this.addSmeltingRecipeForBlock(Blocks.COAL_ORE, new ItemStack(Items.COAL), 0.1F);
    this.addSmeltingRecipeForBlock(Blocks.REDSTONE_ORE, new ItemStack(Items.REDSTONE), 0.7F);
    this.addSmeltingRecipeForBlock(Blocks.LAPIS_ORE, new ItemStack(Items.DYE, 1, EnumDyeColor.BLUE.getDyeDamage()), 0.2F);
    this.addSmeltingRecipeForBlock(Blocks.QUARTZ_ORE, new ItemStack(Items.QUARTZ), 0.2F);
    this.addSmelting(Items.CHAINMAIL_HELMET, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.CHAINMAIL_CHESTPLATE, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.CHAINMAIL_LEGGINGS, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.CHAINMAIL_BOOTS, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.IRON_PICKAXE, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.IRON_SHOVEL, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.IRON_AXE, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.IRON_HOE, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.IRON_SWORD, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.IRON_HELMET, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.IRON_CHESTPLATE, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.IRON_LEGGINGS, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.IRON_BOOTS, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.IRON_HORSE_ARMOR, new ItemStack(Items.field_191525_da), 0.1F);
    this.addSmelting(Items.GOLDEN_PICKAXE, new ItemStack(Items.GOLD_NUGGET), 0.1F);
    this.addSmelting(Items.GOLDEN_SHOVEL, new ItemStack(Items.GOLD_NUGGET), 0.1F);
    this.addSmelting(Items.GOLDEN_AXE, new ItemStack(Items.GOLD_NUGGET), 0.1F);
    this.addSmelting(Items.GOLDEN_HOE, new ItemStack(Items.GOLD_NUGGET), 0.1F);
    this.addSmelting(Items.GOLDEN_SWORD, new ItemStack(Items.GOLD_NUGGET), 0.1F);
    this.addSmelting(Items.GOLDEN_HELMET, new ItemStack(Items.GOLD_NUGGET), 0.1F);
    this.addSmelting(Items.GOLDEN_CHESTPLATE, new ItemStack(Items.GOLD_NUGGET), 0.1F);
    this.addSmelting(Items.GOLDEN_LEGGINGS, new ItemStack(Items.GOLD_NUGGET), 0.1F);
    this.addSmelting(Items.GOLDEN_BOOTS, new ItemStack(Items.GOLD_NUGGET), 0.1F);
    this.addSmelting(Items.GOLDEN_HORSE_ARMOR, new ItemStack(Items.GOLD_NUGGET), 0.1F);
}
项目:Backmemed    文件:PotionHelper.java   
public static void init()
{
    Predicate<ItemStack> predicate = new PotionHelper.ItemPredicateInstance(Items.NETHER_WART);
    Predicate<ItemStack> predicate1 = new PotionHelper.ItemPredicateInstance(Items.GOLDEN_CARROT);
    Predicate<ItemStack> predicate2 = new PotionHelper.ItemPredicateInstance(Items.REDSTONE);
    Predicate<ItemStack> predicate3 = new PotionHelper.ItemPredicateInstance(Items.FERMENTED_SPIDER_EYE);
    Predicate<ItemStack> predicate4 = new PotionHelper.ItemPredicateInstance(Items.RABBIT_FOOT);
    Predicate<ItemStack> predicate5 = new PotionHelper.ItemPredicateInstance(Items.GLOWSTONE_DUST);
    Predicate<ItemStack> predicate6 = new PotionHelper.ItemPredicateInstance(Items.MAGMA_CREAM);
    Predicate<ItemStack> predicate7 = new PotionHelper.ItemPredicateInstance(Items.SUGAR);
    Predicate<ItemStack> predicate8 = new PotionHelper.ItemPredicateInstance(Items.FISH, ItemFishFood.FishType.PUFFERFISH.getMetadata());
    Predicate<ItemStack> predicate9 = new PotionHelper.ItemPredicateInstance(Items.SPECKLED_MELON);
    Predicate<ItemStack> predicate10 = new PotionHelper.ItemPredicateInstance(Items.SPIDER_EYE);
    Predicate<ItemStack> predicate11 = new PotionHelper.ItemPredicateInstance(Items.GHAST_TEAR);
    Predicate<ItemStack> predicate12 = new PotionHelper.ItemPredicateInstance(Items.BLAZE_POWDER);
    registerPotionItem(new PotionHelper.ItemPredicateInstance(Items.POTIONITEM));
    registerPotionItem(new PotionHelper.ItemPredicateInstance(Items.SPLASH_POTION));
    registerPotionItem(new PotionHelper.ItemPredicateInstance(Items.LINGERING_POTION));
    registerPotionItemConversion(Items.POTIONITEM, new PotionHelper.ItemPredicateInstance(Items.GUNPOWDER), Items.SPLASH_POTION);
    registerPotionItemConversion(Items.SPLASH_POTION, new PotionHelper.ItemPredicateInstance(Items.DRAGON_BREATH), Items.LINGERING_POTION);
    registerPotionTypeConversion(PotionTypes.WATER, predicate9, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate11, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate4, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate12, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate10, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate7, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate6, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate5, PotionTypes.THICK);
    registerPotionTypeConversion(PotionTypes.WATER, predicate2, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate, PotionTypes.AWKWARD);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate1, PotionTypes.NIGHT_VISION);
    registerPotionTypeConversion(PotionTypes.NIGHT_VISION, predicate2, PotionTypes.LONG_NIGHT_VISION);
    registerPotionTypeConversion(PotionTypes.NIGHT_VISION, predicate3, PotionTypes.INVISIBILITY);
    registerPotionTypeConversion(PotionTypes.LONG_NIGHT_VISION, predicate3, PotionTypes.LONG_INVISIBILITY);
    registerPotionTypeConversion(PotionTypes.INVISIBILITY, predicate2, PotionTypes.LONG_INVISIBILITY);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate6, PotionTypes.FIRE_RESISTANCE);
    registerPotionTypeConversion(PotionTypes.FIRE_RESISTANCE, predicate2, PotionTypes.LONG_FIRE_RESISTANCE);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate4, PotionTypes.LEAPING);
    registerPotionTypeConversion(PotionTypes.LEAPING, predicate2, PotionTypes.LONG_LEAPING);
    registerPotionTypeConversion(PotionTypes.LEAPING, predicate5, PotionTypes.STRONG_LEAPING);
    registerPotionTypeConversion(PotionTypes.LEAPING, predicate3, PotionTypes.SLOWNESS);
    registerPotionTypeConversion(PotionTypes.LONG_LEAPING, predicate3, PotionTypes.LONG_SLOWNESS);
    registerPotionTypeConversion(PotionTypes.SLOWNESS, predicate2, PotionTypes.LONG_SLOWNESS);
    registerPotionTypeConversion(PotionTypes.SWIFTNESS, predicate3, PotionTypes.SLOWNESS);
    registerPotionTypeConversion(PotionTypes.LONG_SWIFTNESS, predicate3, PotionTypes.LONG_SLOWNESS);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate7, PotionTypes.SWIFTNESS);
    registerPotionTypeConversion(PotionTypes.SWIFTNESS, predicate2, PotionTypes.LONG_SWIFTNESS);
    registerPotionTypeConversion(PotionTypes.SWIFTNESS, predicate5, PotionTypes.STRONG_SWIFTNESS);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate8, PotionTypes.WATER_BREATHING);
    registerPotionTypeConversion(PotionTypes.WATER_BREATHING, predicate2, PotionTypes.LONG_WATER_BREATHING);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate9, PotionTypes.HEALING);
    registerPotionTypeConversion(PotionTypes.HEALING, predicate5, PotionTypes.STRONG_HEALING);
    registerPotionTypeConversion(PotionTypes.HEALING, predicate3, PotionTypes.HARMING);
    registerPotionTypeConversion(PotionTypes.STRONG_HEALING, predicate3, PotionTypes.STRONG_HARMING);
    registerPotionTypeConversion(PotionTypes.HARMING, predicate5, PotionTypes.STRONG_HARMING);
    registerPotionTypeConversion(PotionTypes.POISON, predicate3, PotionTypes.HARMING);
    registerPotionTypeConversion(PotionTypes.LONG_POISON, predicate3, PotionTypes.HARMING);
    registerPotionTypeConversion(PotionTypes.STRONG_POISON, predicate3, PotionTypes.STRONG_HARMING);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate10, PotionTypes.POISON);
    registerPotionTypeConversion(PotionTypes.POISON, predicate2, PotionTypes.LONG_POISON);
    registerPotionTypeConversion(PotionTypes.POISON, predicate5, PotionTypes.STRONG_POISON);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate11, PotionTypes.REGENERATION);
    registerPotionTypeConversion(PotionTypes.REGENERATION, predicate2, PotionTypes.LONG_REGENERATION);
    registerPotionTypeConversion(PotionTypes.REGENERATION, predicate5, PotionTypes.STRONG_REGENERATION);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate12, PotionTypes.STRENGTH);
    registerPotionTypeConversion(PotionTypes.STRENGTH, predicate2, PotionTypes.LONG_STRENGTH);
    registerPotionTypeConversion(PotionTypes.STRENGTH, predicate5, PotionTypes.STRONG_STRENGTH);
    registerPotionTypeConversion(PotionTypes.WATER, predicate3, PotionTypes.WEAKNESS);
    registerPotionTypeConversion(PotionTypes.WEAKNESS, predicate2, PotionTypes.LONG_WEAKNESS);
}
项目:CustomWorldGen    文件:PotionHelper.java   
public static void init()
{
    Predicate<ItemStack> predicate = new PotionHelper.ItemPredicateInstance(Items.NETHER_WART);
    Predicate<ItemStack> predicate1 = new PotionHelper.ItemPredicateInstance(Items.GOLDEN_CARROT);
    Predicate<ItemStack> predicate2 = new PotionHelper.ItemPredicateInstance(Items.REDSTONE);
    Predicate<ItemStack> predicate3 = new PotionHelper.ItemPredicateInstance(Items.FERMENTED_SPIDER_EYE);
    Predicate<ItemStack> predicate4 = new PotionHelper.ItemPredicateInstance(Items.RABBIT_FOOT);
    Predicate<ItemStack> predicate5 = new PotionHelper.ItemPredicateInstance(Items.GLOWSTONE_DUST);
    Predicate<ItemStack> predicate6 = new PotionHelper.ItemPredicateInstance(Items.MAGMA_CREAM);
    Predicate<ItemStack> predicate7 = new PotionHelper.ItemPredicateInstance(Items.SUGAR);
    Predicate<ItemStack> predicate8 = new PotionHelper.ItemPredicateInstance(Items.FISH, ItemFishFood.FishType.PUFFERFISH.getMetadata());
    Predicate<ItemStack> predicate9 = new PotionHelper.ItemPredicateInstance(Items.SPECKLED_MELON);
    Predicate<ItemStack> predicate10 = new PotionHelper.ItemPredicateInstance(Items.SPIDER_EYE);
    Predicate<ItemStack> predicate11 = new PotionHelper.ItemPredicateInstance(Items.GHAST_TEAR);
    Predicate<ItemStack> predicate12 = new PotionHelper.ItemPredicateInstance(Items.BLAZE_POWDER);
    registerPotionItem(new PotionHelper.ItemPredicateInstance(Items.POTIONITEM));
    registerPotionItem(new PotionHelper.ItemPredicateInstance(Items.SPLASH_POTION));
    registerPotionItem(new PotionHelper.ItemPredicateInstance(Items.LINGERING_POTION));
    registerPotionItemConversion(Items.POTIONITEM, new PotionHelper.ItemPredicateInstance(Items.GUNPOWDER), Items.SPLASH_POTION);
    registerPotionItemConversion(Items.SPLASH_POTION, new PotionHelper.ItemPredicateInstance(Items.DRAGON_BREATH), Items.LINGERING_POTION);
    registerPotionTypeConversion(PotionTypes.WATER, predicate9, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate11, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate4, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate12, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate10, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate7, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate6, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate5, PotionTypes.THICK);
    registerPotionTypeConversion(PotionTypes.WATER, predicate2, PotionTypes.MUNDANE);
    registerPotionTypeConversion(PotionTypes.WATER, predicate, PotionTypes.AWKWARD);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate1, PotionTypes.NIGHT_VISION);
    registerPotionTypeConversion(PotionTypes.NIGHT_VISION, predicate2, PotionTypes.LONG_NIGHT_VISION);
    registerPotionTypeConversion(PotionTypes.NIGHT_VISION, predicate3, PotionTypes.INVISIBILITY);
    registerPotionTypeConversion(PotionTypes.LONG_NIGHT_VISION, predicate3, PotionTypes.LONG_INVISIBILITY);
    registerPotionTypeConversion(PotionTypes.INVISIBILITY, predicate2, PotionTypes.LONG_INVISIBILITY);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate6, PotionTypes.FIRE_RESISTANCE);
    registerPotionTypeConversion(PotionTypes.FIRE_RESISTANCE, predicate2, PotionTypes.LONG_FIRE_RESISTANCE);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate4, PotionTypes.LEAPING);
    registerPotionTypeConversion(PotionTypes.LEAPING, predicate2, PotionTypes.LONG_LEAPING);
    registerPotionTypeConversion(PotionTypes.LEAPING, predicate5, PotionTypes.STRONG_LEAPING);
    registerPotionTypeConversion(PotionTypes.LEAPING, predicate3, PotionTypes.SLOWNESS);
    registerPotionTypeConversion(PotionTypes.LONG_LEAPING, predicate3, PotionTypes.LONG_SLOWNESS);
    registerPotionTypeConversion(PotionTypes.SLOWNESS, predicate2, PotionTypes.LONG_SLOWNESS);
    registerPotionTypeConversion(PotionTypes.SWIFTNESS, predicate3, PotionTypes.SLOWNESS);
    registerPotionTypeConversion(PotionTypes.LONG_SWIFTNESS, predicate3, PotionTypes.LONG_SLOWNESS);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate7, PotionTypes.SWIFTNESS);
    registerPotionTypeConversion(PotionTypes.SWIFTNESS, predicate2, PotionTypes.LONG_SWIFTNESS);
    registerPotionTypeConversion(PotionTypes.SWIFTNESS, predicate5, PotionTypes.STRONG_SWIFTNESS);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate8, PotionTypes.WATER_BREATHING);
    registerPotionTypeConversion(PotionTypes.WATER_BREATHING, predicate2, PotionTypes.LONG_WATER_BREATHING);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate9, PotionTypes.HEALING);
    registerPotionTypeConversion(PotionTypes.HEALING, predicate5, PotionTypes.STRONG_HEALING);
    registerPotionTypeConversion(PotionTypes.HEALING, predicate3, PotionTypes.HARMING);
    registerPotionTypeConversion(PotionTypes.STRONG_HEALING, predicate3, PotionTypes.STRONG_HARMING);
    registerPotionTypeConversion(PotionTypes.HARMING, predicate5, PotionTypes.STRONG_HARMING);
    registerPotionTypeConversion(PotionTypes.POISON, predicate3, PotionTypes.HARMING);
    registerPotionTypeConversion(PotionTypes.LONG_POISON, predicate3, PotionTypes.HARMING);
    registerPotionTypeConversion(PotionTypes.STRONG_POISON, predicate3, PotionTypes.STRONG_HARMING);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate10, PotionTypes.POISON);
    registerPotionTypeConversion(PotionTypes.POISON, predicate2, PotionTypes.LONG_POISON);
    registerPotionTypeConversion(PotionTypes.POISON, predicate5, PotionTypes.STRONG_POISON);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate11, PotionTypes.REGENERATION);
    registerPotionTypeConversion(PotionTypes.REGENERATION, predicate2, PotionTypes.LONG_REGENERATION);
    registerPotionTypeConversion(PotionTypes.REGENERATION, predicate5, PotionTypes.STRONG_REGENERATION);
    registerPotionTypeConversion(PotionTypes.AWKWARD, predicate12, PotionTypes.STRENGTH);
    registerPotionTypeConversion(PotionTypes.STRENGTH, predicate2, PotionTypes.LONG_STRENGTH);
    registerPotionTypeConversion(PotionTypes.STRENGTH, predicate5, PotionTypes.STRONG_STRENGTH);
    registerPotionTypeConversion(PotionTypes.WATER, predicate3, PotionTypes.WEAKNESS);
    registerPotionTypeConversion(PotionTypes.WEAKNESS, predicate2, PotionTypes.LONG_WEAKNESS);
}
项目:Cyclic    文件:ItemHeartContainer.java   
@Override
public IRecipe addRecipe() {
  return RecipeRegistry.addShapelessRecipe(new ItemStack(this), Items.BEETROOT, Items.RABBIT, Items.PUMPKIN_PIE, "gemDiamond", Items.CAKE, "blockEmerald", new ItemStack(Items.FISH, 1, ItemFishFood.FishType.SALMON.getMetadata()), Items.GOLDEN_APPLE, Items.POISONOUS_POTATO);
}
项目:Cyclic    文件:ItemCharmWater.java   
@Override
public IRecipe addRecipe() {
  return super.addRecipeAndRepair(new ItemStack(Items.FISH, 1, ItemFishFood.FishType.SALMON.getMetadata()));
}
项目:Cyclic    文件:ItemFoodCrafting.java   
@Override
public IRecipe addRecipe() {
  return RecipeRegistry.addShapelessRecipe(new ItemStack(this),
      "workbench", Items.PUMPKIN_PIE, Items.CAKE, Items.COOKIE, new ItemStack(Items.FISH, 1, ItemFishFood.FishType.SALMON.getMetadata()), Items.POISONOUS_POTATO, "gemDiamond", "gemEmerald", "gemQuartz");
}
项目:Cyclic    文件:ItemFoodInventory.java   
@Override
public IRecipe addRecipe() {
  return RecipeRegistry.addShapelessRecipe(new ItemStack(this), "chestEnder", Items.PUMPKIN_PIE, Items.CAKE, Items.COOKIE, new ItemStack(Items.FISH, 1, ItemFishFood.FishType.SALMON.getMetadata()), Items.POISONOUS_POTATO, "gemDiamond", "gemEmerald", "gemQuartz");
}