Enum ItemTier

    • Enum Constant Detail

      • WOOD

        public static final ItemTier WOOD
      • STONE

        public static final ItemTier STONE
      • IRON

        public static final ItemTier IRON
      • DIAMOND

        public static final ItemTier DIAMOND
      • GOLD

        public static final ItemTier GOLD
      • NETHERITE

        public static final ItemTier NETHERITE
    • Field Detail

      • 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
    • Constructor Detail

      • ItemTier

        private ItemTier​(int p_i48458_3_,
                         int p_i48458_4_,
                         float p_i48458_5_,
                         float p_i48458_6_,
                         int p_i48458_7_,
                         java.util.function.Supplier<Ingredient> p_i48458_8_)
    • Method Detail

      • values

        public static ItemTier[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ItemTier c : ItemTier.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ItemTier valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null