Uses of Record Class
net.minecraft.world.level.saveddata.SavedData.Context
Packages that use SavedData.Context
Package
Description
-
Uses of SavedData.Context in net.minecraft.world.level.saveddata
Fields in net.minecraft.world.level.saveddata with type parameters of type SavedData.ContextModifier and TypeFieldDescriptionprivate final Function
<SavedData.Context, com.mojang.serialization.Codec<T>> SavedDataType.codec
The field for thecodec
record component.private final Function
<SavedData.Context, T> SavedDataType.constructor
The field for theconstructor
record component.Methods in net.minecraft.world.level.saveddata that return types with arguments of type SavedData.ContextModifier and TypeMethodDescriptionFunction
<SavedData.Context, com.mojang.serialization.Codec<T>> SavedDataType.codec()
Returns the value of thecodec
record component.SavedDataType.constructor()
Returns the value of theconstructor
record component.Constructor parameters in net.minecraft.world.level.saveddata with type arguments of type SavedData.ContextModifierConstructorDescriptionSavedDataType
(String id, Function<SavedData.Context, T> constructor, Function<SavedData.Context, com.mojang.serialization.Codec<T>> codec) SavedDataType
(String id, Function<SavedData.Context, T> constructor, Function<SavedData.Context, com.mojang.serialization.Codec<T>> codec, @Nullable DataFixTypes dataFixType) Creates an instance of aSavedDataType
record class. -
Uses of SavedData.Context in net.minecraft.world.level.storage
Fields in net.minecraft.world.level.storage declared as SavedData.ContextConstructors in net.minecraft.world.level.storage with parameters of type SavedData.ContextModifierConstructorDescriptionDimensionDataStorage
(SavedData.Context p_401422_, Path p_362421_, com.mojang.datafixers.DataFixer p_78150_, HolderLookup.Provider p_324180_) -
Uses of SavedData.Context in net.neoforged.neoforge.attachment
Methods in net.neoforged.neoforge.attachment with parameters of type SavedData.ContextModifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec
<LevelAttachmentsSavedData> LevelAttachmentsSavedData.makeCodec
(SavedData.Context context) Constructors in net.neoforged.neoforge.attachment with parameters of type SavedData.Context