public enum NewsItemAction extends Enum<NewsItemAction>
| Enum Constant and Description |
|---|
BROADCAST_TO_CONSOLE |
BROADCAST_TO_OPERATORS |
ON_OPERATOR_JOIN |
ON_SERVER_STARTED |
| Modifier and Type | Method and Description |
|---|---|
static NewsItemAction |
getByName(String actionName) |
static NewsItemAction |
valueOf(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.
|
public static final NewsItemAction ON_SERVER_STARTED
public static final NewsItemAction ON_OPERATOR_JOIN
public static final NewsItemAction BROADCAST_TO_CONSOLE
public static final NewsItemAction BROADCAST_TO_OPERATORS
public static NewsItemAction[] values()
for (NewsItemAction c : NewsItemAction.values()) System.out.println(c);
public static NewsItemAction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static NewsItemAction getByName(String actionName)
Copyright © 2021 GeyserMC. All rights reserved.