Package net.minecraft.resources
Enum PackCompatibility
- java.lang.Object
-
- java.lang.Enum<PackCompatibility>
-
- net.minecraft.resources.PackCompatibility
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PackCompatibility>
public enum PackCompatibility extends java.lang.Enum<PackCompatibility>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPATIBLE
TOO_NEW
TOO_OLD
-
Field Summary
Fields Modifier and Type Field Description private ITextComponent
confirmation
private ITextComponent
description
-
Constructor Summary
Constructors Modifier Constructor Description private
PackCompatibility(java.lang.String p_i47910_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PackCompatibility
forFormat(int p_198969_0_)
ITextComponent
getConfirmation()
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.
-
-
-
Enum Constant Detail
-
TOO_OLD
public static final PackCompatibility TOO_OLD
-
TOO_NEW
public static final PackCompatibility TOO_NEW
-
COMPATIBLE
public static final PackCompatibility COMPATIBLE
-
-
Field Detail
-
description
private final ITextComponent description
-
confirmation
private final ITextComponent confirmation
-
-
Method Detail
-
values
public static PackCompatibility[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PackCompatibility c : PackCompatibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PackCompatibility valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isCompatible
public boolean isCompatible()
-
forFormat
public static PackCompatibility forFormat(int p_198969_0_)
-
getDescription
public ITextComponent getDescription()
-
getConfirmation
public ITextComponent getConfirmation()
-
-