public static enum PlayerFishEvent.State extends 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(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(String name)
name
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合Copyright © 2016. All rights reserved.