public static enum PlayerFishEvent.State extends java.lang.Enum<PlayerFishEvent.State>
枚举常量和说明 |
---|
BITE
Called when there is a bite on the hook and it is ready to be reeled
in.
|
CAUGHT_ENTITY
When a player has successfully caught an entity.
|
CAUGHT_FISH
When a player has successfully caught a fish and is reeling it in.
|
FAILED_ATTEMPT
When a player fails to catch anything while fishing usually due to
poor aiming or timing.
|
FISHING
When a player is fishing, ie casting the line out.
|
IN_GROUND
When a bobber is stuck in the ground.
|
限定符和类型 | 方法和说明 |
---|---|
static PlayerFishEvent.State |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static PlayerFishEvent.State[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final PlayerFishEvent.State FISHING
public static final PlayerFishEvent.State CAUGHT_FISH
public static final PlayerFishEvent.State CAUGHT_ENTITY
public static final PlayerFishEvent.State IN_GROUND
public static final PlayerFishEvent.State FAILED_ATTEMPT
public static final PlayerFishEvent.State BITE
public static PlayerFishEvent.State[] values()
for (PlayerFishEvent.State c : PlayerFishEvent.State.values()) System.out.println(c);
public static PlayerFishEvent.State valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值