public enum NewsItemMessage extends Enum<NewsItemMessage>
| Enum Constant and Description |
|---|
DOWNTIME_GENERIC |
DOWNTIME_TIMEFRAME |
DOWNTIME_WITH_START |
UPDATE_ANCIENT_VERSION |
UPDATE_AVAILABLE |
UPDATE_HIGHLY_RECOMMENDED |
UPDATE_RECOMMENDED |
| Modifier and Type | Method and Description |
|---|---|
static NewsItemMessage |
getById(int id) |
String |
getFormattedMessage(com.google.gson.JsonArray serverArguments) |
String |
getMessageFormat() |
String |
toString() |
static NewsItemMessage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NewsItemMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NewsItemMessage UPDATE_AVAILABLE
public static final NewsItemMessage UPDATE_RECOMMENDED
public static final NewsItemMessage UPDATE_HIGHLY_RECOMMENDED
public static final NewsItemMessage UPDATE_ANCIENT_VERSION
public static final NewsItemMessage DOWNTIME_GENERIC
public static final NewsItemMessage DOWNTIME_WITH_START
public static final NewsItemMessage DOWNTIME_TIMEFRAME
public static NewsItemMessage[] values()
for (NewsItemMessage c : NewsItemMessage.values()) System.out.println(c);
public static NewsItemMessage 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 NewsItemMessage getById(int id)
public String getMessageFormat()
public String getFormattedMessage(com.google.gson.JsonArray serverArguments)
public String toString()
toString in class Enum<NewsItemMessage>Copyright © 2021 GeyserMC. All rights reserved.