public SpearDAYO(int par1, EnumToolMaterial par2EnumToolMaterial) { super(par1, par2EnumToolMaterial); this.toolMaterial = par2EnumToolMaterial; this.setMaxStackSize(1); this.weaponDamage = (int) par2EnumToolMaterial.getDamageVsEntity(); this.setMaxDamage(0); }
public ItemRuneHammer(int par1, EnumToolMaterial par2EnumToolMaterial) { super(par1, par2EnumToolMaterial); this.toolMaterial = par2EnumToolMaterial; this.maxStackSize = 1; this.setMaxDamage(par2EnumToolMaterial.getMaxUses()); this.setCreativeTab(CreativeTabs.tabCombat); this.weaponDamage = 5.0F + par2EnumToolMaterial.getDamageVsEntity(); }
public ItemDagger(int par1, boolean poison, EnumToolMaterial par2EnumToolMaterial) { super(par1); this.poisonous = poison; this.toolMaterial = par2EnumToolMaterial; this.maxStackSize = 1; String texturePrefix = this.getToolMaterialName().toLowerCase().equals("emerald") ? "diamond" : this.getToolMaterialName().toLowerCase(); if (this.poisonous) { texturePrefix = texturePrefix + "_poisonous"; } this.setTextureName("acm:" + texturePrefix + "_dagger"); this.setMaxDamage(par2EnumToolMaterial.getMaxUses()); this.setUnlocalizedName(texturePrefix + "_dagger"); this.setCreativeTab(CreativeTabs.tabCombat); this.weaponDamage = 3.0F + par2EnumToolMaterial.getDamageVsEntity(); }