Ejemplo n.º 1
0
 public ItemHoe(int i, net.minecraft.src.EnumToolMaterial enumtoolmaterial)
     : base(i)
 {
     // Referenced classes of package net.minecraft.src:
     //            Item, EnumToolMaterial, World, Block,
     //            BlockGrass, StepSound, ItemStack, EntityPlayer
     maxStackSize = 1;
     SetMaxDamage(enumtoolmaterial.GetMaxUses());
 }
Ejemplo n.º 2
0
 public ItemSword(int i, net.minecraft.src.EnumToolMaterial enumtoolmaterial)
     : base(i)
 {
     // Referenced classes of package net.minecraft.src:
     //            Item, EnumToolMaterial, Block, ItemStack,
     //            EntityLiving, Entity
     maxStackSize = 1;
     SetMaxDamage(enumtoolmaterial.GetMaxUses());
     weaponDamage = 4 + enumtoolmaterial.GetDamageVsEntity() * 2;
 }
Ejemplo n.º 3
0
 protected internal ItemTool(int i, int j, net.minecraft.src.EnumToolMaterial enumtoolmaterial
                             , net.minecraft.src.Block[] ablock)
     : base(i)
 {
     // Referenced classes of package net.minecraft.src:
     //            Item, EnumToolMaterial, ItemStack, Block,
     //            EntityLiving, Entity
     efficiencyOnProperMaterial = 4F;
     toolMaterial           = enumtoolmaterial;
     blocksEffectiveAgainst = ablock;
     maxStackSize           = 1;
     SetMaxDamage(enumtoolmaterial.GetMaxUses());
     efficiencyOnProperMaterial = enumtoolmaterial.GetEfficiencyOnProperMaterial();
     damageVsEntity             = j + enumtoolmaterial.GetDamageVsEntity();
 }