Beispiel #1
0
 @Override
 public int getExpDrop(IBlockAccess world, int meta, int fortune) {
   if (name.equals("oreCoal")) return Blocks.coal_ore.getExpDrop(world, meta, fortune);
   else if (name.equals("oreIron")) return Blocks.iron_ore.getExpDrop(world, meta, fortune);
   else if (name.equals("oreLapis")) return Blocks.lapis_ore.getExpDrop(world, meta, fortune);
   else if (name.equals("oreGold")) return Blocks.gold_ore.getExpDrop(world, meta, fortune);
   else if (name.equals("oreDiamond")) return Blocks.diamond_ore.getExpDrop(world, meta, fortune);
   else if (name.equals("oreRedstone"))
     return Blocks.redstone_ore.getExpDrop(world, meta, fortune);
   else if (name.equals("oreEmerald")) return Blocks.emerald_ore.getExpDrop(world, meta, fortune);
   else if (name.equals("oreSulfur"))
     return ArtificeBlocks.blockSulfur.getExpDrop(world, meta, fortune);
   else if (name.equals("oreEnder"))
     return ArtificeBlocks.blockEnderOre.getExpDrop(world, meta, fortune);
   else if (Block.getBlockFromItem(ItemHelper.getOre(name).getItem()) != this)
     return Block.getBlockFromItem(ItemHelper.getOre(name).getItem())
         .getExpDrop(world, meta, fortune);
   else return 0;
 }
Beispiel #2
0
 @Override
 public ItemStack createStackedBlock(int p_149644_1_) {
   if (name.equals("oreCoal")) return new ItemStack(Blocks.coal_ore);
   else if (name.equals("oreIron")) return new ItemStack(Blocks.iron_ore);
   else if (name.equals("oreLapis")) return new ItemStack(Blocks.lapis_ore);
   else if (name.equals("oreGold")) return new ItemStack(Blocks.gold_ore);
   else if (name.equals("oreDiamond")) return new ItemStack(Blocks.diamond_ore);
   else if (name.equals("oreRedstone")) return new ItemStack(Blocks.redstone_ore);
   else if (name.equals("oreEmerald")) return new ItemStack(Blocks.emerald_ore);
   else if (name.equals("oreSulfur")) return new ItemStack(ArtificeBlocks.blockSulfur);
   else if (name.equals("oreEnder")) return new ItemStack(ArtificeBlocks.blockEnderOre);
   else return new ItemStack(Block.getBlockFromItem(ItemHelper.getOre(name).getItem()));
 }
Beispiel #3
0
 @Override
 public int damageDropped(int meta) {
   if (name.equals("oreLapis")) return Blocks.lapis_ore.damageDropped(meta);
   else if (name.equals("oreCoal")
       || name.equals("oreIron")
       || name.equals("oreGold")
       || name.equals("oreDiamond")
       || name.equals("oreRedstone")
       || name.equals("oreEmerald")
       || name.equals("oreSulfur")) return 0;
   else if (name.equals("oreEnder")) return ArtificeBlocks.blockEnderOre.damageDropped(meta);
   else return ItemHelper.getOre(name).getItemDamage();
 }
Beispiel #4
0
 @Override
 public Item getItemDropped(int meta, Random rand, int fortune) {
   if (name.equals("oreCoal")) return Blocks.coal_ore.getItemDropped(0, rand, fortune);
   else if (name.equals("oreIron")) return Blocks.iron_ore.getItemDropped(0, rand, fortune);
   else if (name.equals("oreLapis")) return Blocks.lapis_ore.getItemDropped(0, rand, fortune);
   else if (name.equals("oreGold")) return Blocks.gold_ore.getItemDropped(0, rand, fortune);
   else if (name.equals("oreDiamond")) return Blocks.diamond_ore.getItemDropped(0, rand, fortune);
   else if (name.equals("oreRedstone"))
     return Blocks.redstone_ore.getItemDropped(0, rand, fortune);
   else if (name.equals("oreEmerald")) return Blocks.emerald_ore.getItemDropped(0, rand, fortune);
   else if (name.equals("oreSulfur"))
     return ArtificeBlocks.blockSulfur.getItemDropped(0, rand, fortune);
   else if (name.equals("oreEnder"))
     return ArtificeBlocks.blockEnderOre.getItemDropped(0, rand, fortune);
   else return ItemHelper.getOre(name).getItem();
 }