Enum ArmorItem.Material

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

public static enum ArmorItem.Material
extends Enum<ArmorItem.Material>
Mappings:
Namespace Name
official yj$a
intermediary net/minecraft/class_2012$class_2013
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_8537 Lnet/minecraft/class_2012$class_2013;field_8537:Lnet/minecraft/class_2012$class_2013;
      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_8538 Lnet/minecraft/class_2012$class_2013;field_8538:Lnet/minecraft/class_2012$class_2013;
      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_8539 Lnet/minecraft/class_2012$class_2013;field_8539:Lnet/minecraft/class_2012$class_2013;
      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_8540 Lnet/minecraft/class_2012$class_2013;field_8540:Lnet/minecraft/class_2012$class_2013;
      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_8541 Lnet/minecraft/class_2012$class_2013;field_8541:Lnet/minecraft/class_2012$class_2013;
      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_8542 Lnet/minecraft/class_2012$class_2013;field_8542: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_8543 Lnet/minecraft/class_2012$class_2013;field_8543: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_8544 Lnet/minecraft/class_2012$class_2013;field_8544:[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_8545 Lnet/minecraft/class_2012$class_2013;field_8545: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_2012$class_2013;<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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ArmorItem.Material valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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_8176 Lnet/minecraft/class_2012$class_2013;method_8176(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_8178 Lnet/minecraft/class_2012$class_2013;method_8178(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_8175 Lnet/minecraft/class_2012$class_2013;method_8175()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_8177 Lnet/minecraft/class_2012$class_2013;method_8177()Lnet/minecraft/class_2054;
      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_8179 Lnet/minecraft/class_2012$class_2013;method_8179()Ljava/lang/String;
      named getName Lnet/minecraft/item/ArmorItem$Material;getName()Ljava/lang/String;