Package net.minecraft.util.datafix
Enum Class DataFixTypes
- All Implemented Interfaces:
Serializable
,Comparable<DataFixTypes>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.datafixers.DSL.TypeReference
static final Set
<com.mojang.datafixers.DSL.TypeReference> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DataFixTypes
(com.mojang.datafixers.DSL.TypeReference pType) -
Method Summary
Modifier and TypeMethodDescription(package private) static int
<T> com.mojang.serialization.Dynamic
<T> update
(com.mojang.datafixers.DataFixer pFixer, com.mojang.serialization.Dynamic<T> pInput, int pVersion, int pNewVersion) update
(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion, int pNewVersion) <T> com.mojang.serialization.Dynamic
<T> updateToCurrentVersion
(com.mojang.datafixers.DataFixer pFixer, com.mojang.serialization.Dynamic<T> pInput, int pVersion) updateToCurrentVersion
(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion) static DataFixTypes
Returns the enum constant of this class with the specified name.static DataFixTypes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.<A> com.mojang.serialization.Codec
<A> wrapCodec
(com.mojang.serialization.Codec<A> pCodec, com.mojang.datafixers.DataFixer pDataFixer, int pDataVersion)
-
Enum Constant Details
-
LEVEL
-
PLAYER
-
CHUNK
-
HOTBAR
-
OPTIONS
-
STRUCTURE
-
STATS
-
SAVED_DATA_COMMAND_STORAGE
-
SAVED_DATA_FORCED_CHUNKS
-
SAVED_DATA_MAP_DATA
-
SAVED_DATA_MAP_INDEX
-
SAVED_DATA_RAIDS
-
SAVED_DATA_RANDOM_SEQUENCES
-
SAVED_DATA_SCOREBOARD
-
SAVED_DATA_STRUCTURE_FEATURE_INDICES
-
ADVANCEMENTS
-
POI_CHUNK
-
WORLD_GEN_SETTINGS
-
ENTITY_CHUNK
-
-
Field Details
-
TYPES_FOR_LEVEL_LIST
-
type
private final com.mojang.datafixers.DSL.TypeReference type
-
-
Constructor Details
-
DataFixTypes
private DataFixTypes(com.mojang.datafixers.DSL.TypeReference pType)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
currentVersion
static int currentVersion() -
wrapCodec
public <A> com.mojang.serialization.Codec<A> wrapCodec(com.mojang.serialization.Codec<A> pCodec, com.mojang.datafixers.DataFixer pDataFixer, int pDataVersion) -
update
public <T> com.mojang.serialization.Dynamic<T> update(com.mojang.datafixers.DataFixer pFixer, com.mojang.serialization.Dynamic<T> pInput, int pVersion, int pNewVersion) -
updateToCurrentVersion
public <T> com.mojang.serialization.Dynamic<T> updateToCurrentVersion(com.mojang.datafixers.DataFixer pFixer, com.mojang.serialization.Dynamic<T> pInput, int pVersion) -
update
public CompoundTag update(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion, int pNewVersion) -
updateToCurrentVersion
public CompoundTag updateToCurrentVersion(com.mojang.datafixers.DataFixer pFixer, CompoundTag pTag, int pVersion)
-