public static enum PlayerModify.Type extends java.lang.Enum<PlayerModify.Type>
See the enum to get more specific information.
| 枚举常量和说明 |
|---|
add
Directly add to the original value.
|
multiply
Multiply the original value by the factor.
|
scaleUp
Scale the original value up by percentage.
|
set |
| 限定符和类型 | 方法和说明 |
|---|---|
static PlayerModify.Type |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static PlayerModify.Type[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final PlayerModify.Type set
public static final PlayerModify.Type add
value = value + factor
public static final PlayerModify.Type multiply
value = value * factor
public static final PlayerModify.Type scaleUp
e.g. value = value * (1 + factor)
public static PlayerModify.Type[] values()
for (PlayerModify.Type c : PlayerModify.Type.values()) System.out.println(c);
public static PlayerModify.Type valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值