Exemplo n.º 1
0
 public ItemTerraSword(int par1, EnumToolMaterial par2EnumToolMaterial) {
   super(par1);
   this.toolMaterial = par2EnumToolMaterial;
   this.maxStackSize = 1;
   this.setMaxDamage(par2EnumToolMaterial.getMaxUses());
   this.weaponDamage = 4 + par2EnumToolMaterial.getDamageVsEntity();
 }
Exemplo n.º 2
0
 public ItemSword(int p_i3695_1_, EnumToolMaterial p_i3695_2_) {
   super(p_i3695_1_);
   field_77826_b = p_i3695_2_;
   field_77777_bU = 1;
   func_77656_e(p_i3695_2_.func_77997_a());
   func_77637_a(CreativeTabs.field_78037_j);
   field_77827_a = 4 + p_i3695_2_.func_78000_c();
 }
Exemplo n.º 3
0
 protected ItemTool(int i, int j, EnumToolMaterial enumtoolmaterial, Block ablock[]) {
   super(i);
   efficiencyOnProperMaterial = 4F;
   toolMaterial = enumtoolmaterial;
   blocksEffectiveAgainst = ablock;
   maxStackSize = 1;
   setMaxDamage(enumtoolmaterial.getMaxUses());
   efficiencyOnProperMaterial = enumtoolmaterial.getEfficiencyOnProperMaterial();
   damageVsEntity = j + enumtoolmaterial.getDamageVsEntity();
 }
Exemplo n.º 4
0
 protected ItemTool(
     int par1, float par2, EnumToolMaterial par3EnumToolMaterial, Block[] par4ArrayOfBlock) {
   super(par1);
   this.toolMaterial = par3EnumToolMaterial;
   this.blocksEffectiveAgainst = par4ArrayOfBlock;
   this.maxStackSize = 1;
   this.setMaxDamage(par3EnumToolMaterial.getMaxUses());
   this.efficiencyOnProperMaterial = par3EnumToolMaterial.getEfficiencyOnProperMaterial();
   this.damageVsEntity = par2 + par3EnumToolMaterial.getDamageVsEntity();
   this.setCreativeTab(CreativeTabs.tabTools);
 }
Exemplo n.º 5
0
 protected ItemTool(
     int par1, int par2, EnumToolMaterial par3EnumToolMaterial, Block par4ArrayOfBlock[]) {
   super(par1);
   efficiencyOnProperMaterial = 4F;
   toolMaterial = par3EnumToolMaterial;
   blocksEffectiveAgainst = par4ArrayOfBlock;
   maxStackSize = 1;
   setMaxDamage(par3EnumToolMaterial.getMaxUses());
   efficiencyOnProperMaterial = par3EnumToolMaterial.getEfficiencyOnProperMaterial();
   damageVsEntity = par2 + par3EnumToolMaterial.getDamageVsEntity();
   setCreativeTab(CreativeTabs.field_78040_i);
 }
Exemplo n.º 6
0
 protected ItemTool(
     int p_i3643_1_, int p_i3643_2_, EnumToolMaterial p_i3643_3_, Block p_i3643_4_[]) {
   super(p_i3643_1_);
   field_77864_a = 4F;
   field_77862_b = p_i3643_3_;
   field_77863_c = p_i3643_4_;
   field_77777_bU = 1;
   func_77656_e(p_i3643_3_.func_77997_a());
   field_77864_a = p_i3643_3_.func_77998_b();
   field_77865_bY = p_i3643_2_ + p_i3643_3_.func_78000_c();
   func_77637_a(CreativeTabs.field_78040_i);
 }
Exemplo n.º 7
0
 public ItemHoe(int par1, EnumToolMaterial par2EnumToolMaterial) {
   super(par1);
   this.theToolMaterial = par2EnumToolMaterial;
   this.maxStackSize = 1;
   this.setMaxDamage(par2EnumToolMaterial.getMaxUses());
   this.setCreativeTab(CreativeTabs.tabTools);
 }
Exemplo n.º 8
0
 public ItemHoe(int i, EnumToolMaterial enumtoolmaterial) {
   super(i);
   this.maxStackSize = 1;
   this.d(enumtoolmaterial.a());
 }
Exemplo n.º 9
0
 public String func_77861_e() {
   return toolMaterial.toString();
 }
Exemplo n.º 10
0
 /** Return the enchantability factor of the item, most of the time is based on material. */
 public int getItemEnchantability() {
   return toolMaterial.getEnchantability();
 }
Exemplo n.º 11
0
 public String func_77825_f() {
   return field_77826_b.toString();
 }
Exemplo n.º 12
0
 public int func_77619_b() {
   return field_77826_b.func_77995_e();
 }
Exemplo n.º 13
0
 public String func_77861_e() {
   return field_77862_b.toString();
 }
Exemplo n.º 14
0
 public ItemHoe(EnumToolMaterial var1) {
   this.a = var1;
   this.h = 1;
   this.e(var1.a());
   this.registerItemKey(CreativeTab.TOOLS);
 }