Enum GamePlayer.Status
- java.lang.Object
-
- java.lang.Enum<GamePlayer.Status>
-
- com.ericlam.mc.minigames.core.character.GamePlayer.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<GamePlayer.Status>
- Enclosing interface:
- GamePlayer
public static enum GamePlayer.Status extends Enum<GamePlayer.Status>
玩家狀態
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GAMING
遊戲中SPECTATING
觀戰中WAITING
大堂投票中
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GamePlayer.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static GamePlayer.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GAMING
public static final GamePlayer.Status GAMING
遊戲中
-
WAITING
public static final GamePlayer.Status WAITING
大堂投票中
-
SPECTATING
public static final GamePlayer.Status SPECTATING
觀戰中
-
-
Method Detail
-
values
public static GamePlayer.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GamePlayer.Status c : GamePlayer.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GamePlayer.Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-