Package net.minecraft.resources
Enum ResourcePackInfo.Priority
- java.lang.Object
-
- java.lang.Enum<ResourcePackInfo.Priority>
-
- net.minecraft.resources.ResourcePackInfo.Priority
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ResourcePackInfo.Priority>
- Enclosing class:
- ResourcePackInfo
public static enum ResourcePackInfo.Priority extends java.lang.Enum<ResourcePackInfo.Priority>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Priority()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> int
insert(java.util.List<T> p_198993_1_, T p_198993_2_, java.util.function.Function<T,ResourcePackInfo> p_198993_3_, boolean p_198993_4_)
ResourcePackInfo.Priority
opposite()
static ResourcePackInfo.Priority
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ResourcePackInfo.Priority[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP
public static final ResourcePackInfo.Priority TOP
-
BOTTOM
public static final ResourcePackInfo.Priority BOTTOM
-
-
Method Detail
-
values
public static ResourcePackInfo.Priority[] 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 (ResourcePackInfo.Priority c : ResourcePackInfo.Priority.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourcePackInfo.Priority 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
-
insert
public <T> int insert(java.util.List<T> p_198993_1_, T p_198993_2_, java.util.function.Function<T,ResourcePackInfo> p_198993_3_, boolean p_198993_4_)
-
opposite
public ResourcePackInfo.Priority opposite()
-
-