Uses of Class
net.minecraftforge.common.data.JsonCodecProvider
-
Uses of JsonCodecProvider in net.minecraftforge.common.data
Modifier and TypeMethodDescriptionstatic <T> JsonCodecProvider<T>
JsonCodecProvider.forDatapackRegistry
(DataGenerator dataGenerator, ExistingFileHelper existingFileHelper, String modid, RegistryOps<com.google.gson.JsonElement> registryOps, ResourceKey<Registry<T>> registryKey, Map<ResourceLocation, T> entries) Returns DatapackRegistryProvider that encodes using the registered loading codec for the provided registry key.JsonCodecProvider.setConditions
(Map<ResourceLocation, ICondition[]> conditions) Applies a condition map to this provider.