diff --git a/src/main/java/techreborn/blocks/generator/BlockDieselGenerator.java b/src/main/java/techreborn/blocks/generator/BlockDieselGenerator.java index d175af0a0..4a93f4ee0 100644 --- a/src/main/java/techreborn/blocks/generator/BlockDieselGenerator.java +++ b/src/main/java/techreborn/blocks/generator/BlockDieselGenerator.java @@ -1,8 +1,13 @@ package techreborn.blocks.generator; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -66,5 +71,11 @@ public class BlockDieselGenerator extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/generator/BlockDragonEggSiphoner.java b/src/main/java/techreborn/blocks/generator/BlockDragonEggSiphoner.java index 8b7e5ce24..b4319bb35 100644 --- a/src/main/java/techreborn/blocks/generator/BlockDragonEggSiphoner.java +++ b/src/main/java/techreborn/blocks/generator/BlockDragonEggSiphoner.java @@ -1,7 +1,12 @@ package techreborn.blocks.generator; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -53,5 +58,11 @@ public class BlockDragonEggSiphoner extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/generator/BlockGasTurbine.java b/src/main/java/techreborn/blocks/generator/BlockGasTurbine.java index d091e14a6..b6409a166 100644 --- a/src/main/java/techreborn/blocks/generator/BlockGasTurbine.java +++ b/src/main/java/techreborn/blocks/generator/BlockGasTurbine.java @@ -1,12 +1,16 @@ package techreborn.blocks.generator; +import ic2.api.item.IC2Items; + import java.util.Map; +import java.util.Random; + import net.minecraftforge.fluids.*; import net.minecraft.util.ChatComponentText; - import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -70,5 +74,11 @@ public class BlockGasTurbine extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/generator/BlockHeatGenerator.java b/src/main/java/techreborn/blocks/generator/BlockHeatGenerator.java index bee140695..fde952a69 100644 --- a/src/main/java/techreborn/blocks/generator/BlockHeatGenerator.java +++ b/src/main/java/techreborn/blocks/generator/BlockHeatGenerator.java @@ -1,7 +1,12 @@ package techreborn.blocks.generator; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -53,5 +58,11 @@ public class BlockHeatGenerator extends BlockMachineBase{ : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/generator/BlockLightningRod.java b/src/main/java/techreborn/blocks/generator/BlockLightningRod.java index 176d9b9a9..55b2b1555 100644 --- a/src/main/java/techreborn/blocks/generator/BlockLightningRod.java +++ b/src/main/java/techreborn/blocks/generator/BlockLightningRod.java @@ -1,7 +1,12 @@ package techreborn.blocks.generator; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.item.Item; import net.minecraft.util.IIcon; import techreborn.blocks.BlockMachineBase; import cpw.mods.fml.relauncher.Side; @@ -44,5 +49,11 @@ public class BlockLightningRod extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/generator/BlockMagicEnergyAbsorber.java b/src/main/java/techreborn/blocks/generator/BlockMagicEnergyAbsorber.java index 2799c775f..48bab066e 100644 --- a/src/main/java/techreborn/blocks/generator/BlockMagicEnergyAbsorber.java +++ b/src/main/java/techreborn/blocks/generator/BlockMagicEnergyAbsorber.java @@ -1,7 +1,12 @@ package techreborn.blocks.generator; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.item.Item; import net.minecraft.util.IIcon; import techreborn.blocks.BlockMachineBase; import cpw.mods.fml.relauncher.Side; @@ -44,5 +49,11 @@ public class BlockMagicEnergyAbsorber extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/generator/BlockMagicEnergyConverter.java b/src/main/java/techreborn/blocks/generator/BlockMagicEnergyConverter.java index e92896025..684bd63f7 100644 --- a/src/main/java/techreborn/blocks/generator/BlockMagicEnergyConverter.java +++ b/src/main/java/techreborn/blocks/generator/BlockMagicEnergyConverter.java @@ -1,7 +1,12 @@ package techreborn.blocks.generator; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.item.Item; import net.minecraft.util.IIcon; import techreborn.blocks.BlockMachineBase; import cpw.mods.fml.relauncher.Side; @@ -44,5 +49,11 @@ public class BlockMagicEnergyConverter extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/generator/BlockPlasmaGenerator.java b/src/main/java/techreborn/blocks/generator/BlockPlasmaGenerator.java index 0acda7393..3ec26b3e8 100644 --- a/src/main/java/techreborn/blocks/generator/BlockPlasmaGenerator.java +++ b/src/main/java/techreborn/blocks/generator/BlockPlasmaGenerator.java @@ -1,7 +1,12 @@ package techreborn.blocks.generator; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.item.Item; import net.minecraft.util.IIcon; import techreborn.blocks.BlockMachineBase; import cpw.mods.fml.relauncher.Side; @@ -44,5 +49,11 @@ public class BlockPlasmaGenerator extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/generator/BlockSemiFluidGenerator.java b/src/main/java/techreborn/blocks/generator/BlockSemiFluidGenerator.java index 76b7b5fd2..87e86dd1a 100644 --- a/src/main/java/techreborn/blocks/generator/BlockSemiFluidGenerator.java +++ b/src/main/java/techreborn/blocks/generator/BlockSemiFluidGenerator.java @@ -1,12 +1,16 @@ package techreborn.blocks.generator; +import ic2.api.item.IC2Items; + import java.util.Map; +import java.util.Random; + import net.minecraftforge.fluids.*; import net.minecraft.util.ChatComponentText; - import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -70,5 +74,11 @@ public class BlockSemiFluidGenerator extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/generator/BlockThermalGenerator.java b/src/main/java/techreborn/blocks/generator/BlockThermalGenerator.java index 28893c540..99bb127fa 100644 --- a/src/main/java/techreborn/blocks/generator/BlockThermalGenerator.java +++ b/src/main/java/techreborn/blocks/generator/BlockThermalGenerator.java @@ -1,8 +1,13 @@ package techreborn.blocks.generator; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -66,5 +71,11 @@ public class BlockThermalGenerator extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockAlloySmelter.java b/src/main/java/techreborn/blocks/machine/BlockAlloySmelter.java index 23c307773..8ab79e9ae 100644 --- a/src/main/java/techreborn/blocks/machine/BlockAlloySmelter.java +++ b/src/main/java/techreborn/blocks/machine/BlockAlloySmelter.java @@ -1,8 +1,16 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; +import ic2.core.Ic2Items; + +import java.util.Random; + +import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; @@ -85,5 +93,10 @@ public class BlockAlloySmelter extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } - + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockAssemblingMachine.java b/src/main/java/techreborn/blocks/machine/BlockAssemblingMachine.java index 07efd1d17..6258dcb79 100644 --- a/src/main/java/techreborn/blocks/machine/BlockAssemblingMachine.java +++ b/src/main/java/techreborn/blocks/machine/BlockAssemblingMachine.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; @@ -84,5 +89,11 @@ public class BlockAssemblingMachine extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockBlastFurnace.java b/src/main/java/techreborn/blocks/machine/BlockBlastFurnace.java index 3c411c1ca..45ffec40b 100644 --- a/src/main/java/techreborn/blocks/machine/BlockBlastFurnace.java +++ b/src/main/java/techreborn/blocks/machine/BlockBlastFurnace.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -86,5 +91,11 @@ public class BlockBlastFurnace extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("advancedMachine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockCentrifuge.java b/src/main/java/techreborn/blocks/machine/BlockCentrifuge.java index bc98d77fd..7cdb12045 100644 --- a/src/main/java/techreborn/blocks/machine/BlockCentrifuge.java +++ b/src/main/java/techreborn/blocks/machine/BlockCentrifuge.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -66,5 +71,11 @@ public class BlockCentrifuge extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockChemicalReactor.java b/src/main/java/techreborn/blocks/machine/BlockChemicalReactor.java index fc59f7d2e..9b37e8b8e 100644 --- a/src/main/java/techreborn/blocks/machine/BlockChemicalReactor.java +++ b/src/main/java/techreborn/blocks/machine/BlockChemicalReactor.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; @@ -85,5 +90,11 @@ public class BlockChemicalReactor extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockDistillationTower.java b/src/main/java/techreborn/blocks/machine/BlockDistillationTower.java index af21991f0..239b7336f 100644 --- a/src/main/java/techreborn/blocks/machine/BlockDistillationTower.java +++ b/src/main/java/techreborn/blocks/machine/BlockDistillationTower.java @@ -1,7 +1,12 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.item.Item; import net.minecraft.util.IIcon; import techreborn.blocks.BlockMachineBase; import cpw.mods.fml.relauncher.Side; @@ -44,5 +49,11 @@ public class BlockDistillationTower extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockGrinder.java b/src/main/java/techreborn/blocks/machine/BlockGrinder.java index 90262a2b8..efd0cba72 100644 --- a/src/main/java/techreborn/blocks/machine/BlockGrinder.java +++ b/src/main/java/techreborn/blocks/machine/BlockGrinder.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -66,5 +71,11 @@ public class BlockGrinder extends BlockMachineBase{ : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockImplosionCompressor.java b/src/main/java/techreborn/blocks/machine/BlockImplosionCompressor.java index 2213406c7..efb1f264d 100644 --- a/src/main/java/techreborn/blocks/machine/BlockImplosionCompressor.java +++ b/src/main/java/techreborn/blocks/machine/BlockImplosionCompressor.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; @@ -84,4 +89,10 @@ public class BlockImplosionCompressor extends BlockMachineBase{ : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("advancedMachine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockIndustrialElectrolyzer.java b/src/main/java/techreborn/blocks/machine/BlockIndustrialElectrolyzer.java index 2428d3897..09ca13435 100644 --- a/src/main/java/techreborn/blocks/machine/BlockIndustrialElectrolyzer.java +++ b/src/main/java/techreborn/blocks/machine/BlockIndustrialElectrolyzer.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -67,5 +72,11 @@ public class BlockIndustrialElectrolyzer extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockIndustrialSawmill.java b/src/main/java/techreborn/blocks/machine/BlockIndustrialSawmill.java index e1e8e333c..846deab24 100644 --- a/src/main/java/techreborn/blocks/machine/BlockIndustrialSawmill.java +++ b/src/main/java/techreborn/blocks/machine/BlockIndustrialSawmill.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -66,5 +71,11 @@ public class BlockIndustrialSawmill extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("advancedMachine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockLathe.java b/src/main/java/techreborn/blocks/machine/BlockLathe.java index cc6975555..2360a43f7 100644 --- a/src/main/java/techreborn/blocks/machine/BlockLathe.java +++ b/src/main/java/techreborn/blocks/machine/BlockLathe.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; @@ -86,4 +91,9 @@ public class BlockLathe extends BlockMachineBase { } + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockMatterFabricator.java b/src/main/java/techreborn/blocks/machine/BlockMatterFabricator.java index c23cf2aa2..a0f5439a9 100644 --- a/src/main/java/techreborn/blocks/machine/BlockMatterFabricator.java +++ b/src/main/java/techreborn/blocks/machine/BlockMatterFabricator.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -66,5 +71,11 @@ public class BlockMatterFabricator extends BlockMachineBase{ : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("advancedMachine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockPlateCuttingMachine.java b/src/main/java/techreborn/blocks/machine/BlockPlateCuttingMachine.java index 257d6b307..c75ac6bbc 100644 --- a/src/main/java/techreborn/blocks/machine/BlockPlateCuttingMachine.java +++ b/src/main/java/techreborn/blocks/machine/BlockPlateCuttingMachine.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; @@ -84,5 +89,11 @@ public class BlockPlateCuttingMachine extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockRollingMachine.java b/src/main/java/techreborn/blocks/machine/BlockRollingMachine.java index f10f9066c..6668d25cf 100644 --- a/src/main/java/techreborn/blocks/machine/BlockRollingMachine.java +++ b/src/main/java/techreborn/blocks/machine/BlockRollingMachine.java @@ -1,8 +1,13 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.Item; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; @@ -65,5 +70,11 @@ public class BlockRollingMachine extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("machine").getItem(); + } } diff --git a/src/main/java/techreborn/blocks/machine/BlockVacuumFreezer.java b/src/main/java/techreborn/blocks/machine/BlockVacuumFreezer.java index cc78e9b02..b9f702801 100644 --- a/src/main/java/techreborn/blocks/machine/BlockVacuumFreezer.java +++ b/src/main/java/techreborn/blocks/machine/BlockVacuumFreezer.java @@ -1,7 +1,12 @@ package techreborn.blocks.machine; +import ic2.api.item.IC2Items; + +import java.util.Random; + import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.item.Item; import net.minecraft.util.IIcon; import techreborn.blocks.BlockMachineBase; import cpw.mods.fml.relauncher.Side; @@ -44,5 +49,11 @@ public class BlockVacuumFreezer extends BlockMachineBase { : (side == metadata ? this.iconFront : this.blockIcon)); } + + @Override + public Item getItemDropped(int meta, Random random, int fortune) + { + return IC2Items.getItem("advancedMachine").getItem(); + } }