Enum Class BasicMetal
- All Implemented Interfaces:
Serializable,Comparable<BasicMetal>,Constable
Slimefun - 基础金属
共9种
- Author:
- ybw0014
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicMetalfromChinese(String chinese) 根据中文返回对应的枚举static BasicMetalfromEnglish(String english) 根据英文返回对应的枚举toString()static BasicMetalReturns the enum constant of this class with the specified name.static BasicMetal[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IRON
铁 -
GOLD
金 -
TIN
锡 -
COPPER
铜 -
SILVER
银 -
ALUMINUM
铝 -
LEAD
铅 -
ZINC
锌 -
MAGNESIUM
镁
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromEnglish
根据英文返回对应的枚举- Parameters:
english-String提供的英文- Returns:
- 对应的枚举
-
fromChinese
根据中文返回对应的枚举- Parameters:
chinese-String提供的中文- Returns:
- 对应的枚举
-
toString
- Overrides:
toStringin classEnum<BasicMetal>
-