Package pers.neige.neigeitems.item
Enum ItemDurability.DamageResult
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum ItemDurability.DamageResult extends Enum<ItemDurability.DamageResult>
耐久消耗事件的各种结果
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Integerordinalprivate final EnumEntries<ItemDurability.DamageResult>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description VANILLA原版物品, 无自定义耐久
BREAK耐久耗尽, 物品破碎
BROKEN_ITEM已损坏物品, 应取消本次事件
ZERO_DAMAGE不损失物品耐久
SUCCESS耐久正常消耗
INVALID_DAMAGE耐久消耗值小于0, 非法
-
Method Summary
Modifier and Type Method Description final ItemDurability.DamageResultvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<ItemDurability.DamageResult>values()Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<ItemDurability.DamageResult>getEntries()耐久消耗事件的各种结果 -
-
Method Detail
-
valueOf
final ItemDurability.DamageResult valueOf(String value)
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.)
-
values
final Array<ItemDurability.DamageResult> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<ItemDurability.DamageResult> getEntries()
耐久消耗事件的各种结果
-
-
-
-