Package org.geysermc.floodgate.news
Enum NewsItemAction
- java.lang.Object
-
- java.lang.Enum<NewsItemAction>
-
- org.geysermc.floodgate.news.NewsItemAction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NewsItemAction>
public enum NewsItemAction extends java.lang.Enum<NewsItemAction>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BROADCAST_TO_CONSOLEBROADCAST_TO_OPERATORSON_OPERATOR_JOINON_SERVER_STARTED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable NewsItemActiongetByName(java.lang.String actionName)static NewsItemActionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NewsItemAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_SERVER_STARTED
public static final NewsItemAction ON_SERVER_STARTED
-
ON_OPERATOR_JOIN
public static final NewsItemAction ON_OPERATOR_JOIN
-
BROADCAST_TO_CONSOLE
public static final NewsItemAction BROADCAST_TO_CONSOLE
-
BROADCAST_TO_OPERATORS
public static final NewsItemAction BROADCAST_TO_OPERATORS
-
-
Method Detail
-
values
public static NewsItemAction[] 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 (NewsItemAction c : NewsItemAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NewsItemAction valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getByName
public static @Nullable NewsItemAction getByName(java.lang.String actionName)
-
-