java.io.Serializable
, java.lang.Comparable<PlayerFishEvent.State>
public static enum PlayerFishEvent.State extends java.lang.Enum<PlayerFishEvent.State>
Enum Constant | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
static PlayerFishEvent.State |
valueOf(java.lang.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 are declared.
|
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
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2018. All rights reserved.