Package net.minecraft.src

Examples of net.minecraft.src.ItemArmor


  public static void addHeavyArmors() {
    int k = 3000;
    for (int x = 0; x < Weapons.itemTypes.length; x++) {
      String type = Weapons.itemTypes[x];
      ItemArmor helm = (ItemArmor) new ItemArmor(k++, EnumArmorMaterial.DIAMOND, 6 + x, 0)
          .setItemName("helmet" + type);
      ModLoader.addName(helm, type + " Helmet");
      ItemArmor chest = (ItemArmor) new ItemArmor(k++, EnumArmorMaterial.DIAMOND, 6 + x, 1)
          .setItemName("chestplate" + type);
      ModLoader.addName(chest, type + " Chestplate");
      ItemArmor leg = (ItemArmor) new ItemArmor(k++, EnumArmorMaterial.DIAMOND, 6 + x, 2)
          .setItemName("leggings" + type);
      ModLoader.addName(leg, type + " Leggings");
      ItemArmor boot = (ItemArmor) new ItemArmor(k++, EnumArmorMaterial.DIAMOND, 6 + x, 3)
          .setItemName("boots" + type);
      ModLoader.addName(boot, type + " Boots");
      ModLoader.addArmor(type.toLowerCase());
    }
  }
View Full Code Here


                        // Move armor parts
                      Item fromItem = getItem(from);
                      if (isDamageable(fromItem)) {
                          if (sortArmorParts) {
                               if (isItemArmor(fromItem)) {
                                 ItemArmor fromItemArmor = asItemArmor(fromItem);
                                   if (globalContainer.hasSection(InvTweaksContainerSection.ARMOR)) {
                                       List<Slot> armorSlots = globalContainer.getSlots(InvTweaksContainerSection.ARMOR);
                                       for (Slot slot : armorSlots) {
                                        boolean move = false;
                                        if (!hasStack(slot)) {
View Full Code Here

TOP

Related Classes of net.minecraft.src.ItemArmor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.