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

    • incorrectBlocksForDrops

      private final TagKey<Block> incorrectBlocksForDrops
    • uses

      private final int uses
    • speed

      private final float speed
    • damage

      private final float damage
    • enchantmentValue

      private final int enchantmentValue
    • repairIngredient

      private final Supplier<Ingredient> repairIngredient
  • Constructor Details

  • 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
    • getIncorrectBlocksForDrops

      public TagKey<Block> getIncorrectBlocksForDrops()
      Specified by:
      getIncorrectBlocksForDrops 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()