public enum NewsType extends Enum<NewsType>
| Enum Constant and Description |
|---|
ANNOUNCEMENT |
BUILD_SPECIFIC |
CHECK_AFTER |
CONFIG_SPECIFIC |
| Modifier and Type | Method and Description |
|---|---|
static NewsType |
getByName(String newsType) |
ItemData |
read(com.google.gson.JsonObject data) |
static NewsType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NewsType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NewsType BUILD_SPECIFIC
public static final NewsType CHECK_AFTER
public static final NewsType ANNOUNCEMENT
public static final NewsType CONFIG_SPECIFIC
public static NewsType[] values()
for (NewsType c : NewsType.values()) System.out.println(c);
public static NewsType 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 ItemData read(com.google.gson.JsonObject data)
Copyright © 2021 GeyserMC. All rights reserved.