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.codecThe field for thecodecrecord component.private final Function<SavedData.Context, T> SavedDataType.constructorThe field for theconstructorrecord 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 thecodecrecord component.SavedDataType.constructor()Returns the value of theconstructorrecord 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 aSavedDataTyperecord 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 pContext, Path pDataFolder, com.mojang.datafixers.DataFixer pFixerUpper, HolderLookup.Provider pRegistries) -
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