枚举常量和说明 |
---|
LEFT_CLICK_AIR
左击空气
|
LEFT_CLICK_BLOCK
左击一个方块
|
PHYSICAL
踩上一个方块
举几个例子:
在耕地跳跃
站在压力板上
让红石矿石发光(点击/踩踏)
触发绊线钩
|
RIGHT_CLICK_AIR
右击空气
|
RIGHT_CLICK_BLOCK
右击一个方块
|
public static final Action LEFT_CLICK_BLOCK
public static final Action RIGHT_CLICK_BLOCK
public static final Action LEFT_CLICK_AIR
public static final Action RIGHT_CLICK_AIR
public static final Action PHYSICAL
public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值