|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PlayerFishEvent.State> org.bukkit.event.player.PlayerFishEvent.State
public static enum PlayerFishEvent.State
An enum to specify the state of the fishing
Enum Constant Summary | |
---|---|
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 |
Method Summary | |
---|---|
static PlayerFishEvent.State |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PlayerFishEvent.State[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
public static final PlayerFishEvent.State[] values()
for(PlayerFishEvent.State c : PlayerFishEvent.State.values()) System.out.println(c);
public static PlayerFishEvent.State valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |