Enum Class AdvancedMetal
- All Implemented Interfaces:
Serializable,Comparable<AdvancedMetal>,Constable
Slimefun - 高级金属(合金)
- Author:
- ybw0014
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription铝黄铜铝青铜银铜合金黄铜青铜钴科林斯青铜大马士革钢硬铝硅铁镀金铁硬化金属镍红石合金强化合金焊锡钢 -
Method Summary
Modifier and TypeMethodDescriptionstatic AdvancedMetalfromChinese(String chinese) 根据中文返回对应的枚举static AdvancedMetalfromEnglish(String english) 根据英文返回对应的枚举static AdvancedMetalfromSlimefunId(String id) 根据粘液物品ID返回对应的枚举toString()static AdvancedMetalReturns the enum constant of this class with the specified name.static AdvancedMetal[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STEEL
钢 -
BRONZE
青铜 -
DURALUMIN
硬铝 -
BILLON
银铜合金 -
BRASS
黄铜 -
ALUMINUM_BRASS
铝黄铜 -
ALUMINUM_BRONZE
铝青铜 -
CORINTHIAN_BRONZE
科林斯青铜 -
SOLDER
焊锡 -
DAMASCUS_STEEL
大马士革钢 -
HARDENED_METAL
硬化金属 -
REINFORCED_ALLOY
强化合金 -
FERROSILICON
硅铁 -
GILDED_IRON
镀金铁 -
REDSTONE_ALLOY
红石合金 -
NICKEL
镍 -
COBALT
钴
-
-
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:
- 对应的枚举
-
fromSlimefunId
根据粘液物品ID返回对应的枚举- Parameters:
id- 粘液物品ID- Returns:
- 对应的枚举
-
toString
- Overrides:
toStringin classEnum<AdvancedMetal>
-