Enum Class BasicMetal

java.lang.Object
java.lang.Enum<BasicMetal>
net.guizhanss.guizhanlib.slimefun.items.core.BasicMetal
All Implemented Interfaces:
Serializable, Comparable<BasicMetal>, Constable

public enum BasicMetal extends Enum<BasicMetal>
Slimefun - 基础金属

共9种

Author:
ybw0014
  • Enum Constant Details

  • Method Details

    • values

      public static BasicMetal[] 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 BasicMetal 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
    • fromEnglish

      @Nullable public static BasicMetal fromEnglish(@Nonnull String english)
      根据英文返回对应的枚举
      Parameters:
      english - String 提供的英文
      Returns:
      对应的枚举
    • fromChinese

      @Nullable public static BasicMetal fromChinese(@Nonnull String chinese)
      根据中文返回对应的枚举
      Parameters:
      chinese - String 提供的中文
      Returns:
      对应的枚举
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Enum<BasicMetal>