本文整理汇总了Java中net.minecraft.item.ItemFishFood.FishType方法的典型用法代码示例。如果您正苦于以下问题:Java ItemFishFood.FishType方法的具体用法?Java ItemFishFood.FishType怎么用?Java ItemFishFood.FishType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.item.ItemFishFood
的用法示例。
在下文中一共展示了ItemFishFood.FishType方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: PurifierRecipes
import net.minecraft.item.ItemFishFood; //导入方法依赖的package包/类
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);
}
示例2: FurnaceRecipes
import net.minecraft.item.ItemFishFood; //导入方法依赖的package包/类
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);
}
示例3: FurnaceRecipes
import net.minecraft.item.ItemFishFood; //导入方法依赖的package包/类
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);
}
示例4: StoveRecipes
import net.minecraft.item.ItemFishFood; //导入方法依赖的package包/类
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()));
}
}
}
示例5: FurnaceRecipes
import net.minecraft.item.ItemFishFood; //导入方法依赖的package包/类
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);
}
示例6: FurnaceRecipes
import net.minecraft.item.ItemFishFood; //导入方法依赖的package包/类
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);
}
示例7: FurnaceRecipes
import net.minecraft.item.ItemFishFood; //导入方法依赖的package包/类
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);
}
示例8: FurnaceRecipes
import net.minecraft.item.ItemFishFood; //导入方法依赖的package包/类
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);
}