Code cleanup

This commit is contained in:
LemADEC 2015-11-13 22:02:16 +01:00
parent 5f71714993
commit 114432331b

View file

@ -16,12 +16,12 @@ import cr0s.warpdrive.WarpDrive;
public class BlockMiningLaser extends BlockContainer { public class BlockMiningLaser extends BlockContainer {
private IIcon[] iconBuffer; private IIcon[] iconBuffer;
private final static int ICON_TOP = 5;
public final static int ICON_IDLE = 0; public final static int ICON_IDLE = 0;
public final static int ICON_MININGLOWPOWER = 1; public final static int ICON_MININGLOWPOWER = 1;
public final static int ICON_MININGPOWERED = 2; public final static int ICON_MININGPOWERED = 2;
public final static int ICON_SCANNINGLOWPOWER = 3; public final static int ICON_SCANNINGLOWPOWER = 3;
public final static int ICON_SCANNINGPOWERED = 4; public final static int ICON_SCANNINGPOWERED = 4;
private final static int ICON_TOP = 5;
public BlockMiningLaser() { public BlockMiningLaser() {
super(Material.rock); super(Material.rock);
@ -60,25 +60,19 @@ public class BlockMiningLaser extends BlockContainer {
return new TileEntityMiningLaser(); return new TileEntityMiningLaser();
} }
/**
* Returns the quantity of items to drop on block destruction.
*/
@Override @Override
public int quantityDropped(Random par1Random) { public int quantityDropped(Random par1Random) {
return 1; return 1;
} }
/** /**
* Returns the ID of the items to drop on destruction. * Returns the item to drop on destruction.
*/ */
@Override @Override
public Item getItemDropped(int par1, Random par2Random, int par3) { public Item getItemDropped(int par1, Random par2Random, int par3) {
return Item.getItemFromBlock(this); return Item.getItemFromBlock(this);
} }
/**
* Called upon block activation (right click on the block.)
*/
@Override @Override
public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) {
if (FMLCommonHandler.instance().getEffectiveSide().isClient()) { if (FMLCommonHandler.instance().getEffectiveSide().isClient()) {