public enum ResourcePackCompatibility extends Enum<ResourcePackCompatibility>
Enum Constant and Description |
---|
COMPATIBLE |
TOO_NEW |
TOO_OLD |
Modifier and Type | Field and Description |
---|---|
private Text |
confirmMessage |
private Text |
notification |
Modifier and Type | Method and Description |
---|---|
static ResourcePackCompatibility |
from(int packVersion) |
Text |
getConfirmMessage() |
Text |
getNotification() |
boolean |
isCompatible() |
static ResourcePackCompatibility |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourcePackCompatibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourcePackCompatibility TOO_OLD
public static final ResourcePackCompatibility TOO_NEW
public static final ResourcePackCompatibility COMPATIBLE
private final Text notification
private final Text confirmMessage
public static ResourcePackCompatibility[] values()
for (ResourcePackCompatibility c : ResourcePackCompatibility.values()) System.out.println(c);
public static ResourcePackCompatibility 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 boolean isCompatible()
public static ResourcePackCompatibility from(int packVersion)
@Environment(value=CLIENT) public Text getNotification()
@Environment(value=CLIENT) public Text getConfirmMessage()