Package net.minecraft.datafixer
Enum DataFixTypes
- All Implemented Interfaces:
Serializable
,Comparable<DataFixTypes>
,java.lang.constant.Constable
public enum DataFixTypes extends Enum<DataFixTypes>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description ADVANCEMENTS
CHUNK
ENTITY_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
typeReference
-
Constructor Summary
Constructors Modifier Constructor Description private
DataFixTypes(com.mojang.datafixers.DSL.TypeReference typeReference)
-
Method Summary
Modifier and Type Method Description com.mojang.datafixers.DSL.TypeReference
getTypeReference()
static DataFixTypes
valueOf(String name)
Returns the enum constant of this type with the specified name.static DataFixTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LEVEL
-
PLAYER
-
CHUNK
-
HOTBAR
-
OPTIONS
-
STRUCTURE
-
STATS
-
SAVED_DATA
-
ADVANCEMENTS
-
POI_CHUNK
-
WORLD_GEN_SETTINGS
-
ENTITY_CHUNK
-
-
Field Details
-
typeReference
private final com.mojang.datafixers.DSL.TypeReference typeReference
-
-
Constructor Details
-
DataFixTypes
private DataFixTypes(com.mojang.datafixers.DSL.TypeReference typeReference)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getTypeReference
public com.mojang.datafixers.DSL.TypeReference getTypeReference()
-