Package net.md_5.bungee.protocol.packet
Enum PlayerListItemUpdate.Action
- java.lang.Object
-
- java.lang.Enum<PlayerListItemUpdate.Action>
-
- net.md_5.bungee.protocol.packet.PlayerListItemUpdate.Action
-
- All Implemented Interfaces:
Serializable,Comparable<PlayerListItemUpdate.Action>
- Enclosing class:
- PlayerListItemUpdate
public static enum PlayerListItemUpdate.Action extends Enum<PlayerListItemUpdate.Action>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_PLAYERINITIALIZE_CHATUPDATE_DISPLAY_NAMEUPDATE_GAMEMODEUPDATE_LATENCYUPDATE_LISTED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PlayerListItemUpdate.ActionvalueOf(String name)Returns the enum constant of this type with the specified name.static PlayerListItemUpdate.Action[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD_PLAYER
public static final PlayerListItemUpdate.Action ADD_PLAYER
-
INITIALIZE_CHAT
public static final PlayerListItemUpdate.Action INITIALIZE_CHAT
-
UPDATE_GAMEMODE
public static final PlayerListItemUpdate.Action UPDATE_GAMEMODE
-
UPDATE_LISTED
public static final PlayerListItemUpdate.Action UPDATE_LISTED
-
UPDATE_LATENCY
public static final PlayerListItemUpdate.Action UPDATE_LATENCY
-
UPDATE_DISPLAY_NAME
public static final PlayerListItemUpdate.Action UPDATE_DISPLAY_NAME
-
-
Method Detail
-
values
public static PlayerListItemUpdate.Action[] 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 (PlayerListItemUpdate.Action c : PlayerListItemUpdate.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlayerListItemUpdate.Action 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
-
-