/*
* @author : Jérémy Chevrier
*/
package net.minecraft.src;
public class ItemGlassCutter extends ItemTool {
private static Block blocksEffectiveAgainst[];
static {
blocksEffectiveAgainst = (new Block[] {mod_ColouredGlass.blockColouredGlassBlack, mod_ColouredGlass.blockColouredGlassBlue, mod_ColouredGlass.blockColouredGlassBrown,
mod_ColouredGlass.blockColouredGlassCyan, mod_ColouredGlass.blockColouredGlassGray, mod_ColouredGlass.blockColouredGlassGreen, mod_ColouredGlass.blockColouredGlassLightBlue,
mod_ColouredGlass.blockColouredGlassLime, mod_ColouredGlass.blockColouredGlassMagenta, mod_ColouredGlass.blockColouredGlassOrange, mod_ColouredGlass.blockColouredGlassPink,
mod_ColouredGlass.blockColouredGlassPurple, mod_ColouredGlass.blockColouredGlassRed, mod_ColouredGlass.blockColouredGlassSilver, mod_ColouredGlass.blockColouredGlassYellow, Block.glass});
}
public ItemGlassCutter (int i, EnumToolMaterial enumtoolmaterial) {
super (i, 1, enumtoolmaterial, blocksEffectiveAgainst);
}
public boolean canHarvestBlock (Block block) {
System.out.println ("Here !!! " + "id : " + block.blockID + " | name : " + block.getBlockName ());
if (block == mod_ColouredGlass.blockColouredGlassBlack || block == mod_ColouredGlass.blockColouredGlassBlue || block == mod_ColouredGlass.blockColouredGlassBrown
|| block == mod_ColouredGlass.blockColouredGlassCyan || block == mod_ColouredGlass.blockColouredGlassGray || block == mod_ColouredGlass.blockColouredGlassGreen
|| block == mod_ColouredGlass.blockColouredGlassLightBlue || block == mod_ColouredGlass.blockColouredGlassLime || block == mod_ColouredGlass.blockColouredGlassMagenta
|| block == mod_ColouredGlass.blockColouredGlassOrange || block == mod_ColouredGlass.blockColouredGlassPink || block == mod_ColouredGlass.blockColouredGlassPurple
|| block == mod_ColouredGlass.blockColouredGlassRed || block == mod_ColouredGlass.blockColouredGlassSilver || block == mod_ColouredGlass.blockColouredGlassYellow) {
System.out.println ("Ici !!!!!!!!!!!!!!!!!");
return true;
}
return block == Block.glass;
}
}