Package net.minecraft.util.datafix
Enum DefaultTypeReferences
- java.lang.Object
-
- java.lang.Enum<DefaultTypeReferences>
-
- net.minecraft.util.datafix.DefaultTypeReferences
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DefaultTypeReferences>
public enum DefaultTypeReferences extends java.lang.Enum<DefaultTypeReferences>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADVANCEMENTS
CHUNK
HOTBAR
LEVEL
OPTIONS
PLAYER
POI_CHUNK
SAVED_DATA
STATS
STRUCTURE
WORLD_GEN_SETTINGS
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.datafixers.DSL.TypeReference
type
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultTypeReferences(com.mojang.datafixers.DSL.TypeReference p_i50434_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mojang.datafixers.DSL.TypeReference
getType()
static DefaultTypeReferences
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DefaultTypeReferences[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEVEL
public static final DefaultTypeReferences LEVEL
-
PLAYER
public static final DefaultTypeReferences PLAYER
-
CHUNK
public static final DefaultTypeReferences CHUNK
-
HOTBAR
public static final DefaultTypeReferences HOTBAR
-
OPTIONS
public static final DefaultTypeReferences OPTIONS
-
STRUCTURE
public static final DefaultTypeReferences STRUCTURE
-
STATS
public static final DefaultTypeReferences STATS
-
SAVED_DATA
public static final DefaultTypeReferences SAVED_DATA
-
ADVANCEMENTS
public static final DefaultTypeReferences ADVANCEMENTS
-
POI_CHUNK
public static final DefaultTypeReferences POI_CHUNK
-
WORLD_GEN_SETTINGS
public static final DefaultTypeReferences WORLD_GEN_SETTINGS
-
-
Method Detail
-
values
public static DefaultTypeReferences[] 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 (DefaultTypeReferences c : DefaultTypeReferences.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultTypeReferences 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
-
getType
public com.mojang.datafixers.DSL.TypeReference getType()
-
-