Enum Class Tiers

java.lang.Object
java.lang.Enum<Tiers>
net.minecraft.world.item.Tiers
All Implemented Interfaces:
Serializable, Comparable<Tiers>, Constable, Tier

public enum Tiers extends Enum<Tiers> implements Tier
  • Enum Constant Details

    • WOOD

      public static final Tiers WOOD
    • STONE

      public static final Tiers STONE
    • IRON

      public static final Tiers IRON
    • DIAMOND

      public static final Tiers DIAMOND
    • GOLD

      public static final Tiers GOLD
    • NETHERITE

      public static final Tiers NETHERITE
  • Field Details

    • level

      private final int level
    • uses

      private final int uses
    • speed

      private final float speed
    • damage

      private final float damage
    • enchantmentValue

      private final int enchantmentValue
    • repairIngredient

      private final LazyLoadedValue<Ingredient> repairIngredient
  • Constructor Details

    • Tiers

      private Tiers(int p_43332_, int p_43333_, float p_43334_, float p_43335_, int p_43336_, Supplier<Ingredient> p_43337_)
  • Method Details

    • values

      public static Tiers[] 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 Tiers 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
    • getUses

      public int getUses()
      Specified by:
      getUses in interface Tier
    • getSpeed

      public float getSpeed()
      Specified by:
      getSpeed in interface Tier
    • getAttackDamageBonus

      public float getAttackDamageBonus()
      Specified by:
      getAttackDamageBonus in interface Tier
    • getLevel

      public int getLevel()
      Specified by:
      getLevel in interface Tier
    • getEnchantmentValue

      public int getEnchantmentValue()
      Specified by:
      getEnchantmentValue in interface Tier
    • getRepairIngredient

      public Ingredient getRepairIngredient()
      Specified by:
      getRepairIngredient in interface Tier
    • getTag

      @Nullable public TagKey<Block> getTag()
      Specified by:
      getTag in interface Tier