Java 类net.minecraft.item.EnumArmorMaterial 实例源码

项目:MineFantasy    文件:ItemArmourMFOld.java   
public ItemArmourMFOld(int i, ArmourDesign design, EnumArmorMaterial mat, int render, int type, String s) {
    super(i, mat, render, type);

    AD = design;
    if(isBasicMaterial(design, mat))
        setCreativeTab(CreativeTabs.tabCombat);
    else
        setCreativeTab(ItemListMF.tabArmour);

    material = mat;
    file = s;
    armourType = type;
    renderIndex = render;
    damageReduceAmount = mat.getDamageReductionAmount(type);
    setMaxDamage(mat.getDurability(type));
    maxStackSize = 1;
}
项目:RuneCraftery    文件:ItemArmor.java   
public void func_82813_b(ItemStack p_82813_1_, int p_82813_2_) {
   if(this.field_77878_bZ != EnumArmorMaterial.CLOTH) {
      throw new UnsupportedOperationException("Can\'t dye non-leather!");
   } else {
      NBTTagCompound var3 = p_82813_1_.func_77978_p();
      if(var3 == null) {
         var3 = new NBTTagCompound();
         p_82813_1_.func_77982_d(var3);
      }

      NBTTagCompound var4 = var3.func_74775_l("display");
      if(!var3.func_74764_b("display")) {
         var3.func_74766_a("display", var4);
      }

      var4.func_74768_a("color", p_82813_2_);
   }
}
项目:RuneCraftery    文件:RecipesArmorDyes.java   
public boolean func_77569_a(InventoryCrafting p_77569_1_, World p_77569_2_) {
   ItemStack var3 = null;
   ArrayList var4 = new ArrayList();

   for(int var5 = 0; var5 < p_77569_1_.func_70302_i_(); ++var5) {
      ItemStack var6 = p_77569_1_.func_70301_a(var5);
      if(var6 != null) {
         if(var6.func_77973_b() instanceof ItemArmor) {
            ItemArmor var7 = (ItemArmor)var6.func_77973_b();
            if(var7.func_82812_d() != EnumArmorMaterial.CLOTH || var3 != null) {
               return false;
            }

            var3 = var6;
         } else {
            if(var6.field_77993_c != Item.field_77756_aW.field_77779_bT) {
               return false;
            }

            var4.add(var6);
         }
      }
   }

   return var3 != null && !var4.isEmpty();
}
项目:FallingEarth    文件:ItemHelper.java   
public static void initItems()
{
    meteorSpawner = new ItemMeteorSpawner(ConfigHelper.MeteorSpawnerID).setUnlocalizedName("MeteorSpawner");

    EnumToolMaterial meteor = EnumHelper.addToolMaterial("Meteoritic", 3, -1, 16, 14, 30);
    meteoriticPickaxe = new ItemMeteoriticPickaxe(ConfigHelper.MeteoriticPickaxeID, meteor).setUnlocalizedName("MeteoriticPickaxe");
    meteoriticAxe = new ItemMeteoriticAxe(ConfigHelper.MeteoriticAxeID, meteor).setUnlocalizedName("MeteoriticAxe");
    meteoriticShovel = new ItemMeteoriticShovel(ConfigHelper.MeteoriticShovelID, meteor).setUnlocalizedName("MeteoriticShovel");
    meteoriticSword = new ItemMeteoriticSword(ConfigHelper.MeteoriticSwordID, meteor).setUnlocalizedName("MeteoriticSword");

    int meteoriticArmor = FallingEarth.proxy.addArmor("FallingEarth:Meteor");
    EnumArmorMaterial meteoritic = EnumHelper.addArmorMaterial("Meteoritic", -1, new int[]{0,0,0,0}, 30);
    meteoriticHead = new ItemMeteoriticArmor(ConfigHelper.MeteoriticHeadID, meteoritic, meteoriticArmor, 0).setUnlocalizedName("FallingEarth:MeteoriticHelmet");
    meteoriticBody = new ItemMeteoriticArmor(ConfigHelper.MeteoriticBodyID, meteoritic, meteoriticArmor, 1).setUnlocalizedName("FallingEarth:MeteoriticBody");
    meteoriticLegs = new ItemMeteoriticArmor(ConfigHelper.MeteoriticLegsID, meteoritic, meteoriticArmor, 2).setUnlocalizedName("FallingEarth:MeteoriticLegs");
    meteoriticBoots = new ItemMeteoriticArmor(ConfigHelper.MeteoriticBootsID, meteoritic, meteoriticArmor, 3).setUnlocalizedName("FallingEarth:MeteoriticBoots");

    meteoriticEssence = new MeteoriticEssence(ConfigHelper.MeteoriticEssenceID).setUnlocalizedName("MeteoriticEssence");
}
项目:piggalot-mod    文件:GGUArmor.java   
public GGUArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial,
        int par3, int par4) {
    super(par1, par2EnumArmorMaterial, par3, par4);
    if(par1==ConfigManager.helmet)
        this.setTextureName("piggalot:pigtite_helmet");
    if(par1==ConfigManager.chestplate)
        this.setTextureName("piggalot:pigtite_chestplate");
    if(par1==ConfigManager.boots)
        this.setTextureName("piggalot:pigtite_boots");
    if(par1==ConfigManager.leggings)
        this.setTextureName("piggalot:pigtite_leggings");
    this.setCreativeTab(Piggalot.piggalottab);
}
项目:MineFantasy    文件:TacticalManager.java   
public static EnumArmourClass getClassFor(ItemStack armour)
{
    if(armour == null)
    {
        return EnumArmourClass.UNARMOURED;
    }
    EnumArmourClass AC = EnumArmourClass.HEAVY;

    if(armour.itemID == Item.helmetLeather.itemID || armour.itemID == Item.plateLeather.itemID || armour.itemID == Item.legsLeather.itemID || armour.itemID == Item.bootsLeather.itemID)
    {
        AC = EnumArmourClass.LIGHT;
    }
    else if(armour.getItem().getClass().getName().endsWith("MoCItemArmor"))
    {
        AC = EnumArmourClass.LIGHT;
    }
    else if(armour.itemID == Item.helmetChain.itemID || armour.itemID == Item.plateChain.itemID || armour.itemID == Item.legsChain.itemID || armour.itemID == Item.bootsChain.itemID)
    {
        AC = EnumArmourClass.MEDIUM;
    }
    else if(armour.getItem() instanceof IArmourClass)
    {
        AC = ((IArmourClass)armour.getItem()).getArmourClass();
    }
    else
    {
        if(armour.getItem() != null && armour.getItem() instanceof ItemArmor)
        {
            EnumArmorMaterial material = ((ItemArmor)armour.getItem()).getArmorMaterial();
            AC = getClassOf(material, AC);
        }
    }
    AC = minefantasy.api.armour.ArmourWeightClass.getClassFor(armour, AC);

    return AC;
}
项目:PeripheralsPlusPlus    文件:ItemSmartHelmet.java   
public ItemSmartHelmet(int id) {
    super(id, EnumArmorMaterial.IRON, 0, 0);
    setMaxDamage(0);
    setCreativeTab(MiscPeripherals.instance.tabMiscPeripherals);

    fwFontRenderer = Reflector.invoke("dan200.ComputerCraft", "getFixedWidthFontRenderer", Object.class);

    SmallNetHelper.bindEntity(EntityPlayerMP.class, this);
}
项目:ZeroQuest    文件:ItemNileArmor.java   
public ItemNileArmor(int par1, EnumArmorMaterial nileEssenceMaterial2, int par3, int par4, String type) {
    super(par1, nileEssenceMaterial2, par3, par4);
    this.maxStackSize = 1;
    this.setCreativeTab(ZeroQuest.ZeroTab);
    this.setTextureName(type, par4);


}
项目:EnderiumPowerArmor    文件:EnderiumPowerArmor.java   
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
    loadConfig(event.getSuggestedConfigurationFile());

    enderiumHelm = new ItemArmorEnderium(starterID++, EnumArmorMaterial.DIAMOND, ItemArmorEnderium.ArmorType.HELMET);
    enderiumChest = new ItemArmorEnderium(starterID++, EnumArmorMaterial.DIAMOND, ItemArmorEnderium.ArmorType.CHESTPLATE);
    enderiumLegs = new ItemArmorEnderium(starterID++, EnumArmorMaterial.DIAMOND, ItemArmorEnderium.ArmorType.LEGS);
    enderiumBoots = new ItemArmorEnderium(starterID++, EnumArmorMaterial.DIAMOND, ItemArmorEnderium.ArmorType.BOOTS);

    GameRegistry.registerItem(enderiumHelm, "enderiumHelm");
    GameRegistry.registerItem(enderiumChest, "enderiumChest");
    GameRegistry.registerItem(enderiumLegs, "enderiumLegs");
    GameRegistry.registerItem(enderiumBoots, "enderiumBoots");
}
项目:EnderiumPowerArmor    文件:ItemArmorEnderium.java   
public ItemArmorEnderium(int id, EnumArmorMaterial material, ArmorType type)
{
    super(id, material, 0, type.ordinal());
    String texture = "", unlocalized = "";
    this.type = type;
    switch (type)
    {
    case BOOTS:
        texture = "enderiumpowerarmor:armorEnderiumBoots";
        unlocalized = "enderium.boots";
        break;
    case CHESTPLATE:
        texture = "enderiumpowerarmor:armorEnderiumChestplate";
        unlocalized = "enderium.chest";
        break;
    case HELMET:
        texture = "enderiumpowerarmor:armorEnderiumHelmet";
        unlocalized = "enderium.helmet";
        break;
    case LEGS:
        texture = "enderiumpowerarmor:armorEnderiumLegs";
        unlocalized = "enderium.legs";
        break;
    }
    setTextureName(texture);
    setCreativeTab(ThermalExpansion.tabItems);
    setUnlocalizedName(unlocalized);
    setMaxStackSize(1);
    setMaxDamage(101);
}
项目:RuneCraftery    文件:ItemArmor.java   
public ItemArmor(int p_i1828_1_, EnumArmorMaterial p_i1828_2_, int p_i1828_3_, int p_i1828_4_) {
   super(p_i1828_1_);
   this.field_77878_bZ = p_i1828_2_;
   this.field_77881_a = p_i1828_4_;
   this.field_77880_c = p_i1828_3_;
   this.field_77879_b = p_i1828_2_.func_78044_b(p_i1828_4_);
   this.func_77656_e(p_i1828_2_.func_78046_a(p_i1828_4_));
   this.field_77777_bU = 1;
   this.func_77637_a(CreativeTabs.field_78037_j);
   BlockDispenser.field_82527_a.func_82595_a(this, field_96605_cw);
}
项目:RuneCraftery    文件:ItemArmor.java   
public int func_82814_b(ItemStack p_82814_1_) {
   if(this.field_77878_bZ != EnumArmorMaterial.CLOTH) {
      return -1;
   } else {
      NBTTagCompound var2 = p_82814_1_.func_77978_p();
      if(var2 == null) {
         return 10511680;
      } else {
         NBTTagCompound var3 = var2.func_74775_l("display");
         return var3 == null?10511680:(var3.func_74764_b("color")?var3.func_74762_e("color"):10511680);
      }
   }
}
项目:RuneCraftery    文件:ItemArmor.java   
public void func_82815_c(ItemStack p_82815_1_) {
   if(this.field_77878_bZ == EnumArmorMaterial.CLOTH) {
      NBTTagCompound var2 = p_82815_1_.func_77978_p();
      if(var2 != null) {
         NBTTagCompound var3 = var2.func_74775_l("display");
         if(var3.func_74764_b("color")) {
            var3.func_82580_o("color");
         }

      }
   }
}
项目:RuneCraftery    文件:ItemArmor.java   
@SideOnly(Side.CLIENT)
public void func_94581_a(IconRegister p_94581_1_) {
   super.func_94581_a(p_94581_1_);
   if(this.field_77878_bZ == EnumArmorMaterial.CLOTH) {
      this.field_94605_cw = p_94581_1_.func_94245_a(field_94606_cu[this.field_77881_a]);
   }

   this.field_94604_cx = p_94581_1_.func_94245_a(field_94603_a[this.field_77881_a]);
}
项目:RuneCraftery    文件:RecipesArmorDyes.java   
/**
 * Used to check if a recipe matches current crafting inventory
 */
public boolean matches(InventoryCrafting par1InventoryCrafting, World par2World)
{
    ItemStack itemstack = null;
    ArrayList arraylist = new ArrayList();

    for (int i = 0; i < par1InventoryCrafting.getSizeInventory(); ++i)
    {
        ItemStack itemstack1 = par1InventoryCrafting.getStackInSlot(i);

        if (itemstack1 != null)
        {
            if (itemstack1.getItem() instanceof ItemArmor)
            {
                ItemArmor itemarmor = (ItemArmor)itemstack1.getItem();

                if (itemarmor.getArmorMaterial() != EnumArmorMaterial.CLOTH || itemstack != null)
                {
                    return false;
                }

                itemstack = itemstack1;
            }
            else
            {
                if (itemstack1.itemID != Item.dyePowder.itemID)
                {
                    return false;
                }

                arraylist.add(itemstack1);
            }
        }
    }

    return itemstack != null && !arraylist.isEmpty();
}
项目:BetterNutritionMod    文件:RecipesArmorDyes.java   
/**
 * Used to check if a recipe matches current crafting inventory
 */
public boolean matches(InventoryCrafting par1InventoryCrafting, World par2World)
{
    ItemStack itemstack = null;
    ArrayList arraylist = new ArrayList();

    for (int i = 0; i < par1InventoryCrafting.getSizeInventory(); ++i)
    {
        ItemStack itemstack1 = par1InventoryCrafting.getStackInSlot(i);

        if (itemstack1 != null)
        {
            if (itemstack1.getItem() instanceof ItemArmor)
            {
                ItemArmor itemarmor = (ItemArmor)itemstack1.getItem();

                if (itemarmor.getArmorMaterial() != EnumArmorMaterial.CLOTH || itemstack != null)
                {
                    return false;
                }

                itemstack = itemstack1;
            }
            else
            {
                if (itemstack1.itemID != Item.dyePowder.itemID)
                {
                    return false;
                }

                arraylist.add(itemstack1);
            }
        }
    }

    return itemstack != null && !arraylist.isEmpty();
}
项目:Kingdom-Keys    文件:OrganizationArmor.java   
public OrganizationArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4, String armorFile, String name) {
  super(par1, par2EnumArmorMaterial, par3, par4);
  this.armorFile = armorFile; // sets this instance of the armor file to
  // what's in the constructor
  this.setCreativeTab(KingdomKeys.KKTAB);
  this.name = name;
  this.setUnlocalizedName(this.name);
}
项目:Kingdom-Keys    文件:KeybladeEArmor.java   
public KeybladeEArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4, String armorFile, String name) {
    super(par1, par2EnumArmorMaterial, par3, par4);
    this.armorFile = armorFile; // sets this instance of the armor file to
    // what's in the constructor
    this.setCreativeTab(KingdomKeys.KKTAB);
    this.name = name;
    this.setUnlocalizedName(this.name);
}
项目:Kingdom-Keys    文件:KeybladeVArmor.java   
public KeybladeVArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4, String armorFile, String name) {
  super(par1, par2EnumArmorMaterial, par3, par4);
  this.armorFile = armorFile; // sets this instance of the armor file to
  // what's in the constructor
  this.setCreativeTab(KingdomKeys.KKTAB);
  this.name = name;
  this.setUnlocalizedName(this.name);
}
项目:Kingdom-Keys    文件:KeybladeTArmor.java   
public KeybladeTArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4, String armorFile, String name) {
  super(par1, par2EnumArmorMaterial, par3, par4);
  this.armorFile = armorFile; // sets this instance of the armor file to
  // what's in the constructor
  this.setCreativeTab(KingdomKeys.KKTAB);
  this.name = name;
  this.setUnlocalizedName(this.name);
}
项目:Kingdom-Keys    文件:KeybladeAArmor.java   
public KeybladeAArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4, String armorFile, String name) {
  super(par1, par2EnumArmorMaterial, par3, par4);
  this.armorFile = armorFile; // sets this instance of the armor file to
  // what's in the constructor
  this.setCreativeTab(KingdomKeys.KKTAB);
  this.name = name;
  this.setUnlocalizedName(this.name);
}
项目:4-Space-Legacy    文件:SCVenusItemJetpack.java   
public SCVenusItemJetpack(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4, boolean breathable)
  {
      super(par1, par2EnumArmorMaterial, par3, par4);
this.setMaxStackSize(1);
this.setMaxDamage(256);
      this.material = par2EnumArmorMaterial;
      this.attachedMask = breathable;
  }
项目:ALttC    文件:ModItems.java   
public static void init(){
    itemHeart = new ItemHeart(ConfigHandler.itemHeart, "pickupHeart");
    masterSword = new ItemWeaponBase(ConfigHandler.itemMasterSword, "masterSword");
    dekuStick = new ItemDekuStick(ConfigHandler.dekuStick, "dekuStick");
    lensOfTruth = new ItemTTP(ConfigHandler.itemLens, "lensOfTruth", false);
    tunicZora = new ItemArmorTunic(1000, EnumArmorMaterial.CLOTH, "tunic.zora", ALttC.proxy.addArmor("zora"));
    tunicGoron = new ItemArmorTunic(1001,EnumArmorMaterial.CLOTH,  "tunic.goron", ALttC.proxy.addArmor("goron"));
}
项目:MaxCraft    文件:MectoriditeArmor.java   
public MectoriditeArmor(int id, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
    super(id, par2EnumArmorMaterial, par3, par4);
    this.setCreativeTab(MaxCraft.tabMC);
    par2EnumArmorMaterial.getDamageReductionAmount(par4);
    this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
    this.setMaxStackSize(1);
    this.material = par2EnumArmorMaterial;
    armorNamePrefix = Strings.MectoriditeArmorPrefix;
}
项目:MaxCraft    文件:SEMArmor.java   
public SEMArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
    super(par1, par2EnumArmorMaterial, par3, par4);
    this.setCreativeTab(MaxCraft.tabMC);
    par2EnumArmorMaterial.getDamageReductionAmount(par4);
    this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
    this.setMaxStackSize(1);
    this.material = par2EnumArmorMaterial;
    armorNamePrefix = Strings.SEMArmorPrefix;
}
项目:ElementalExperimentation    文件:Alloy.java   
public Alloy(String name, Element element1, Element element2, HashMap<String, EnumArmorMaterial> armorMaterialStorage, HashMap<String, EnumToolMaterial> toolMaterialStorage) {
    this.alloyName = name;
    this.component1 = element1;
    this.component2 = element2;
    this.armorMaterialStorage = armorMaterialStorage;
    this.toolMaterialStorage = toolMaterialStorage;
}
项目:MoreThingsCraft    文件:ItemMTCArmor.java   
public ItemMTCArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial,
         String unlocalizedName, int type) {
    super(par1, par2EnumArmorMaterial, MoreThingsCraft.proxy.addArmor(unlocalizedName), type);
    this.setUnlocalizedName(unlocalizedName);
    setCreativeTab(MoreThingsCraft.tabMTC);
    // TODO Auto-generated constructor stub
}
项目:Gems    文件:LapisGemModule.java   
public static void Settings() {
  //Items - Lapis Gem
  lapisGem = (new Gem(lapisGemID, "Lapis")).setMaxStackSize(64);
  chargedLapisGem = (new Gem(chargedLapisGemID, "ChargedLapis")).setMaxStackSize(16);
  //Tools - Lapis Gem
  lapisGemPaxel = (new Paxel(lapisGemPaxelID, ToolMaterials.ChargedLapisGem));
  //Swords - Lapis Gem
  lapisGemSword = (new Sword(lapisGemSwordID, ToolMaterials.ChargedLapisGem));
  //Armor - Lapis Gem
  EnumArmorMaterial lapisGemArmorMaterial = EnumHelper.addArmorMaterial("Lapis Gem Armor", 40, new int[] { 4, 9, 7, 4 }, 50);
  lapisGemHelmet = new LapisGemHelmet(lapisGemHelmetID, lapisGemArmorMaterial, Gems.proxy.addArmor("LapisGem"), 0).setUnlocalizedName("LapisGemHelmet").setCreativeTab(CreativeTabs.tabCombat);
  lapisGemChestplate = new LapisGemChestplate(lapisGemChestplateID, lapisGemArmorMaterial, Gems.proxy.addArmor("LapisGem"), 1).setUnlocalizedName("LapisGemChestplate").setCreativeTab(CreativeTabs.tabCombat);
  lapisGemLeggings = new LapisGemLeggings(lapisGemLeggingsID, lapisGemArmorMaterial, Gems.proxy.addArmor("LapisGem"), 2).setUnlocalizedName("LapisGemLeggings").setCreativeTab(CreativeTabs.tabCombat);
  lapisGemBoots = new LapisGemBoots(lapisGemBootsID, lapisGemArmorMaterial, Gems.proxy.addArmor("LapisGem"), 3).setUnlocalizedName("LapisGemBoots").setCreativeTab(CreativeTabs.tabCombat);
  //Blocks - Lapis Gem
  blockLapisGem = new BasicBlock(blockLapisGemID, "LapisGemblock",Material.rock).setHardness(4.0F).setResistance(7.5F).setStepSound(Block.soundMetalFootstep).setUnlocalizedName("BlockLapisGem").setCreativeTab(CreativeTabs.tabBlock);
  // Register Recipes - Lapis Gem
  GameRegistry.addRecipe(new ItemStack(lapisGem, 1), "ldl", "ddd", "ldl", 'l', new ItemStack(Item.dyePowder, 1, 4), 'd', new ItemStack(Item.diamond));
  GameRegistry.addSmelting(lapisGemID + 256, new ItemStack(chargedLapisGem), 1);
  GameRegistry.addRecipe(new ItemStack(lapisGemHelmet), "lll", "l l", "   ", 'l', new ItemStack(chargedLapisGem));
  GameRegistry.addRecipe(new ItemStack(lapisGemChestplate), "l l", "lll", "lll", 'l', new ItemStack(chargedLapisGem));
  GameRegistry.addRecipe(new ItemStack(lapisGemLeggings), "lll", "l l", "l l", 'l', new ItemStack(chargedLapisGem));
  GameRegistry.addRecipe(new ItemStack(lapisGemBoots), "   ", "l l", "l l", 'l', new ItemStack(chargedLapisGem));
  GameRegistry.addRecipe(new ItemStack(blockLapisGem), "lll", "lll", "lll", 'l', new ItemStack(chargedLapisGem));
  GameRegistry.addShapelessRecipe(new ItemStack(chargedLapisGem, 9), new ItemStack(blockLapisGem));
  GameRegistry.addRecipe(new ItemStack(lapisGemPaxel), "lbl", " s ", " s ", 'b', new ItemStack(blockLapisGem), 'l', new ItemStack(chargedLapisGem), 's', new ItemStack(Item.stick));
  GameRegistry.addRecipe(new ItemStack(lapisGemSword), " b ", " l ", " s ", 'b', new ItemStack(blockLapisGem), 'l', new ItemStack(chargedLapisGem), 's', new ItemStack(Item.stick));    
}
项目:Oceania    文件:ItemDivingHelmet.java   
public ItemDivingHelmet(int itemID)
{
    super(itemID, EnumArmorMaterial.IRON, 2, 0);
    setCreativeTab(Oceania.CREATIVE_TAB);
    setMaxDamage(1024);
    setMaxStackSize(1);
    setUnlocalizedName("itemDivingHelmet");
    this._armorProperties = new ArmorProperties(2, 0.5, 4);
}
项目:ObsidiCraft    文件:ItemBlackDiamondArmor.java   
public ItemBlackDiamondArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4)
{
    super(par1, par2EnumArmorMaterial, par3, par4);
    this.material = par2EnumArmorMaterial;
    this.armorType = par4;
    this.renderIndex = par3;
    this.damageReduceAmount = par2EnumArmorMaterial.getDamageReductionAmount(par4);
    this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
    this.maxStackSize = 1;
    this.setCreativeTab(ObsidiCraft.tabsOC);
    BlockDispenser.dispenseBehaviorRegistry.putObject(this, field_96605_cw);
}
项目:ObsidiCraft    文件:ItemObsidianArmor.java   
public ItemObsidianArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4)
{
    super(par1, par2EnumArmorMaterial, par3, par4);
    this.material = par2EnumArmorMaterial;
    this.armorType = par4;
    this.renderIndex = par3;
    this.damageReduceAmount = par2EnumArmorMaterial.getDamageReductionAmount(par4);
    this.setMaxDamage(par2EnumArmorMaterial.getDurability(par4));
    this.maxStackSize = 1;
    this.setCreativeTab(ObsidiCraft.tabsOC);
    BlockDispenser.dispenseBehaviorRegistry.putObject(this, field_96605_cw);
}
项目:secri    文件:ItemMaemeArmor.java   
public ItemMaemeArmor(int i, int index, EnumArmorMaterial enumArmorMaterial, int k, int l, String textureName, String itemName)
{
    super(i, enumArmorMaterial, k, l);
    this.setMaxDamage(enumArmorMaterial.getDurability(l));
    this.setCreativeTab(CreativeTabs.tabCombat);
    this.textureName = textureName;
    setUnlocalizedName(itemName);
}
项目:secri    文件:ItemMaemeBoots.java   
public ItemMaemeBoots(int i, int index, EnumArmorMaterial enumArmorMaterial, int k, int l, String textureName, String itemName)
{
    super(i, enumArmorMaterial, k, l);
    this.setMaxDamage(400);
    this.setCreativeTab(CreativeTabs.tabCombat);
    this.textureName = textureName;
    setUnlocalizedName(itemName);
}
项目:MysticMods    文件:ItemArmorMithril.java   
public ItemArmorMithril(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
    super(par1, par2EnumArmorMaterial, par3, par4);
    this.ArmorType = par4;
    this.setMaxDamage(500);
    this.setCreativeTab(MysticWorld.MysticWorldTab);
    this.ArmorFile_1 = "/assets/MysticMods/textures/armor/mithril_1.png";
    this.ArmorFile_2 = "/assets/MysticMods/textures/armor/mithril_2.png";
}
项目:MysticMods    文件:ItemArmorIridium.java   
public ItemArmorIridium(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
    super(par1, par2EnumArmorMaterial, par3, par4);
    this.ArmorType = par4;
    this.setMaxDamage(4000);
    this.setCreativeTab(MysticWorld.MysticWorldTab);
    this.ArmorFile_1 = "/assets/MysticMods/textures/armor/iridium_1.png";
    this.ArmorFile_2 = "/assets/MysticMods/textures/armor/iridium_2.png";
}
项目:MysticMods    文件:ItemArmorVerdite.java   
public ItemArmorVerdite(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
    super(par1, par2EnumArmorMaterial, par3, par4);
    this.ArmorType = par4;
    this.setMaxDamage(262);
    this.setCreativeTab(MysticWorld.MysticWorldTab);
    this.ArmorFile_1 = "/assets/MysticMods/textures/armor/verdite_1.png";
    this.ArmorFile_2 = "/assets/MysticMods/textures/armor/verdite_2.png";
}
项目:MysticMods    文件:ItemArmorAdamantine.java   
public ItemArmorAdamantine(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
    super(par1, par2EnumArmorMaterial, par3, par4);
    this.ArmorType = par4;
    this.setMaxDamage(3000);
    this.setCreativeTab(MysticWorld.MysticWorldTab);
    this.ArmorFile_1 = "/MysticMods/textures/armor/adamantine_1.png";
    this.ArmorFile_2 = "/MysticMods/textures/armor/adamantine_2.png";
}
项目:powell.cellarium    文件:TearsArmor.java   
public TearsArmor(int id, EnumArmorMaterial material, int renderIndex, int slotType, String itemTexture, String armorTexture)
{
    super(id, material, renderIndex, slotType);
    this.itemTexture = itemTexture;
    this.armorTexture = armorTexture;
    setCreativeTab(Cellarium.tabCellarium);
    setUnlocalizedName("armor_" + itemTexture);
}
项目:powell.cellarium    文件:BloodArmor.java   
public BloodArmor(int id, EnumArmorMaterial material, int renderIndex, int slotType, String itemTexture, String armorTexture)
{
    super(id, material, renderIndex, slotType);
    this.itemTexture = itemTexture;
    this.armorTexture = armorTexture;
    setCreativeTab(Cellarium.tabCellarium);
    setUnlocalizedName("armor_" + itemTexture);
}
项目:MineFantasy    文件:ItemArmourMFOld.java   
private boolean isBasicMaterial(ArmourDesign d, EnumArmorMaterial mat) {
    return isVChain() || (d == ArmourDesign.SOLID && (mat == MedievalArmourMaterial.STEEL || mat == MedievalArmourMaterial.RAWHIDE));
}