Code cleanup
This commit is contained in:
parent
5f71714993
commit
114432331b
1 changed files with 12 additions and 18 deletions
|
@ -16,12 +16,12 @@ import cr0s.warpdrive.WarpDrive;
|
|||
|
||||
public class BlockMiningLaser extends BlockContainer {
|
||||
private IIcon[] iconBuffer;
|
||||
private final static int ICON_TOP = 5;
|
||||
public final static int ICON_IDLE = 0;
|
||||
public final static int ICON_MININGLOWPOWER = 1;
|
||||
public final static int ICON_MININGPOWERED = 2;
|
||||
public final static int ICON_SCANNINGLOWPOWER = 3;
|
||||
public final static int ICON_SCANNINGPOWERED = 4;
|
||||
private final static int ICON_TOP = 5;
|
||||
|
||||
public BlockMiningLaser() {
|
||||
super(Material.rock);
|
||||
|
@ -60,25 +60,19 @@ public class BlockMiningLaser extends BlockContainer {
|
|||
return new TileEntityMiningLaser();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the quantity of items to drop on block destruction.
|
||||
*/
|
||||
@Override
|
||||
public int quantityDropped(Random par1Random) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ID of the items to drop on destruction.
|
||||
* Returns the item to drop on destruction.
|
||||
*/
|
||||
@Override
|
||||
public Item getItemDropped(int par1, Random par2Random, int par3) {
|
||||
return Item.getItemFromBlock(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Called upon block activation (right click on the block.)
|
||||
*/
|
||||
@Override
|
||||
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()) {
|
||||
|
|
Loading…
Reference in a new issue