public enum PackCompatibility extends java.lang.Enum<PackCompatibility>
| Enum Constant and Description |
|---|
COMPATIBLE |
TOO_NEW |
TOO_OLD |
| Modifier and Type | Field and Description |
|---|---|
private ITextComponent |
confirmMessage |
private ITextComponent |
description |
| Modifier and Type | Method and Description |
|---|---|
static PackCompatibility |
getCompatibility(int packVersionIn) |
ITextComponent |
getConfirmMessage() |
ITextComponent |
getDescription() |
boolean |
isCompatible() |
static PackCompatibility |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PackCompatibility[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PackCompatibility TOO_OLD
public static final PackCompatibility TOO_NEW
public static final PackCompatibility COMPATIBLE
private final ITextComponent description
private final ITextComponent confirmMessage
public static PackCompatibility[] values()
for (PackCompatibility c : PackCompatibility.values()) System.out.println(c);
public static PackCompatibility valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isCompatible()
public static PackCompatibility getCompatibility(int packVersionIn)
public ITextComponent getDescription()
public ITextComponent getConfirmMessage()