Code cleanup

This commit is contained in:
LemADEC 2015-11-13 21:37:32 +01:00
parent f780c5125e
commit 7de3ab0439

View file

@ -19,7 +19,10 @@ import cr0s.warpdrive.WarpDrive;
public class BlockShipController extends BlockContainer {
private IIcon[] iconBuffer;
private final int ICON_INACTIVE_SIDE = 0, ICON_BOTTOM = 1, ICON_TOP = 2, ICON_SIDE_ACTIVATED = 3;
private final int ICON_INACTIVE_SIDE = 0;
private final int ICON_BOTTOM = 1;
private final int ICON_TOP = 2;
private final int ICON_SIDE_ACTIVATED = 3;
public BlockShipController() {
super(Material.rock);
@ -73,24 +76,19 @@ public class BlockShipController extends BlockContainer {
return new TileEntityShipController();
}
/**
* 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 items 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()) {