Enum Class ArmorItem.Material

java.lang.Object
java.lang.Enum<ArmorItem.Material>
net.minecraft.item.ArmorItem.Material
All Implemented Interfaces:
Serializable, Comparable<ArmorItem.Material>, Constable
Enclosing class:
ArmorItem

public static enum ArmorItem.Material extends Enum<ArmorItem.Material>
Mappings:
Namespace Name
official yj$a
intermediary net/minecraft/class_1028$class_1029
named net/minecraft/item/ArmorItem$Material
  • Enum Constant Details

    • LEATHER

      public static final ArmorItem.Material LEATHER
      Mappings:
      Namespace Name Mixin selector
      official a Lyj$a;a:Lyj$a;
      intermediary field_12154 Lnet/minecraft/class_1028$class_1029;field_12154:Lnet/minecraft/class_1028$class_1029;
      named LEATHER Lnet/minecraft/item/ArmorItem$Material;LEATHER:Lnet/minecraft/item/ArmorItem$Material;
    • CHAIN

      public static final ArmorItem.Material CHAIN
      Mappings:
      Namespace Name Mixin selector
      official b Lyj$a;b:Lyj$a;
      intermediary field_4162 Lnet/minecraft/class_1028$class_1029;field_4162:Lnet/minecraft/class_1028$class_1029;
      named CHAIN Lnet/minecraft/item/ArmorItem$Material;CHAIN:Lnet/minecraft/item/ArmorItem$Material;
    • IRON

      public static final ArmorItem.Material IRON
      Mappings:
      Namespace Name Mixin selector
      official c Lyj$a;c:Lyj$a;
      intermediary field_4163 Lnet/minecraft/class_1028$class_1029;field_4163:Lnet/minecraft/class_1028$class_1029;
      named IRON Lnet/minecraft/item/ArmorItem$Material;IRON:Lnet/minecraft/item/ArmorItem$Material;
    • GOLD

      public static final ArmorItem.Material GOLD
      Mappings:
      Namespace Name Mixin selector
      official d Lyj$a;d:Lyj$a;
      intermediary field_4164 Lnet/minecraft/class_1028$class_1029;field_4164:Lnet/minecraft/class_1028$class_1029;
      named GOLD Lnet/minecraft/item/ArmorItem$Material;GOLD:Lnet/minecraft/item/ArmorItem$Material;
    • DIAMOND

      public static final ArmorItem.Material DIAMOND
      Mappings:
      Namespace Name Mixin selector
      official e Lyj$a;e:Lyj$a;
      intermediary field_4165 Lnet/minecraft/class_1028$class_1029;field_4165:Lnet/minecraft/class_1028$class_1029;
      named DIAMOND Lnet/minecraft/item/ArmorItem$Material;DIAMOND:Lnet/minecraft/item/ArmorItem$Material;
  • Field Details

    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official f Lyj$a;f:Ljava/lang/String;
      intermediary field_12155 Lnet/minecraft/class_1028$class_1029;field_12155:Ljava/lang/String;
      named name Lnet/minecraft/item/ArmorItem$Material;name:Ljava/lang/String;
    • durability

      private final int durability
      Mappings:
      Namespace Name Mixin selector
      official g Lyj$a;g:I
      intermediary field_4166 Lnet/minecraft/class_1028$class_1029;field_4166:I
      named durability Lnet/minecraft/item/ArmorItem$Material;durability:I
    • protection

      private final int[] protection
      Mappings:
      Namespace Name Mixin selector
      official h Lyj$a;h:[I
      intermediary field_4167 Lnet/minecraft/class_1028$class_1029;field_4167:[I
      named protection Lnet/minecraft/item/ArmorItem$Material;protection:[I
    • enchantability

      private final int enchantability
      Mappings:
      Namespace Name Mixin selector
      official i Lyj$a;i:I
      intermediary field_4168 Lnet/minecraft/class_1028$class_1029;field_4168:I
      named enchantability Lnet/minecraft/item/ArmorItem$Material;enchantability:I
  • Constructor Details

    • Material

      private Material(String name, int durability, int[] protection, int enchantability)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lyj$a;<init>(Ljava/lang/String;ILjava/lang/String;I[II)V
      intermediary <init> Lnet/minecraft/class_1028$class_1029;<init>(Ljava/lang/String;ILjava/lang/String;I[II)V
      named <init> Lnet/minecraft/item/ArmorItem$Material;<init>(Ljava/lang/String;ILjava/lang/String;I[II)V
  • Method Details

    • values

      public static ArmorItem.Material[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ArmorItem.Material valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDurability

      public int getDurability(int slot)
      Mappings:
      Namespace Name Mixin selector
      official a Lyj$a;a(I)I
      intermediary method_3306 Lnet/minecraft/class_1028$class_1029;method_3306(I)I
      named getDurability Lnet/minecraft/item/ArmorItem$Material;getDurability(I)I
    • getProtection

      public int getProtection(int slot)
      Mappings:
      Namespace Name Mixin selector
      official b Lyj$a;b(I)I
      intermediary method_3307 Lnet/minecraft/class_1028$class_1029;method_3307(I)I
      named getProtection Lnet/minecraft/item/ArmorItem$Material;getProtection(I)I
    • getEnchantability

      public int getEnchantability()
      Mappings:
      Namespace Name Mixin selector
      official a Lyj$a;a()I
      intermediary method_3305 Lnet/minecraft/class_1028$class_1029;method_3305()I
      named getEnchantability Lnet/minecraft/item/ArmorItem$Material;getEnchantability()I
    • getRepairIngredient

      public Item getRepairIngredient()
      Mappings:
      Namespace Name Mixin selector
      official b Lyj$a;b()Lzw;
      intermediary method_6339 Lnet/minecraft/class_1028$class_1029;method_6339()Lnet/minecraft/class_1069;
      named getRepairIngredient Lnet/minecraft/item/ArmorItem$Material;getRepairIngredient()Lnet/minecraft/item/Item;
    • getName

      @Environment(CLIENT) public String getName()
      Mappings:
      Namespace Name Mixin selector
      official c Lyj$a;c()Ljava/lang/String;
      intermediary method_11266 Lnet/minecraft/class_1028$class_1029;method_11266()Ljava/lang/String;
      named getName Lnet/minecraft/item/ArmorItem$Material;getName()Ljava/lang/String;