Package net.minecraft.data
Interface DataProvider
- All Known Implementing Classes:
AdvancementProvider,AtlasProvider,BannerPatternTagsProvider,BiomeParametersDumpReport,BiomeTagsProvider,BlockListReport,BlockTagCopyingItemTagProvider,BlockTagsProvider,CommandsReport,DamageTypeTagsProvider,DataMapProvider,DatapackBuiltinEntriesProvider,DatapackStructureReport,DialogTagsProvider,EnchantmentTagsProvider,EntityTypeTagsProvider,EquipmentAssetProvider,FlatLevelGeneratorPresetTagsProvider,FluidTagsProvider,GameEventTagsProvider,GlobalLootModifierProvider,InstrumentTagsProvider,IntrinsicHolderTagsProvider,ItemListReport,ItemTagsProvider,JsonCodecProvider,JsonRpcApiSchema,KeyTagProvider,LanguageProvider,LootTableProvider,ModelProvider,NbtToSnbt,NeoForgeAdvancementProvider,NeoForgeBiomeTagsProvider,NeoForgeBlockTagsProvider,NeoForgeDamageTypeTagsProvider,NeoForgeDataMapsProvider,NeoForgeEnchantmentTagsProvider,NeoForgeEntityTypeTagsProvider,NeoForgeFluidTagsProvider,NeoForgeItemTagsProvider,NeoForgeLanguageProvider,NeoForgeLootTableProvider,NeoForgeRecipeProvider.Runner,NeoForgeRegistryOrderReportProvider,NeoForgeSpriteSourceProvider,NeoForgeStructureTagsProvider,PacketReport,PackMetadataGenerator,PaintingVariantTagsProvider,ParticleDescriptionProvider,PoiTypeTagsProvider,RecipePrioritiesProvider,RecipeProvider.Runner,RegistriesDatapackGenerator,RegistryDumpReport,SnbtToNbt,SoundDefinitionsProvider,SpriteSourceProvider,StructureTagsProvider,TagsProvider,TradeRebalanceEnchantmentTagsProvider,VanillaBlockTagsProvider,VanillaEnchantmentTagsProvider,VanillaItemTagsProvider,VanillaRecipeProvider.Runner,VanillaSoundDefinitionsProvider,WaypointStyleProvider,WorldPresetTagsProvider
public interface DataProvider
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDataProvider.Factory<T extends DataProvider> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ToIntFunction<String> static final AtomicIntegerNeo: Allows changing the indentation width used bysaveStable(net.minecraft.data.CachedOutput, net.minecraft.core.HolderLookup.Provider, com.mojang.serialization.Codec<T>, T, java.nio.file.Path).static final Comparator<String> static final org.slf4j.Logger -
Method Summary
Modifier and TypeMethodDescriptiongetName()run(CachedOutput pOutput) static <T,E> CompletableFuture <?> saveAll(CachedOutput pOutput, com.mojang.serialization.Codec<E> pCodec, Function<T, Path> pPathGetter, Map<T, E> pEntries) static <T> CompletableFuture<?> saveAll(CachedOutput pOutput, com.mojang.serialization.Codec<T> pCodec, PackOutput.PathProvider pPathProvider, Map<ResourceLocation, T> pEntries) static <T,E> CompletableFuture <?> saveAll(CachedOutput pOutput, Function<E, JsonElement> pSerializer, Function<T, Path> pPathGetter, Map<T, E> pEntries) static CompletableFuture<?> saveStable(CachedOutput pOutput, JsonElement pJson, Path pPath) static <T> CompletableFuture<?> saveStable(CachedOutput pOutput, com.mojang.serialization.Codec<T> pCodec, T pValue, Path pPath) private static <T> CompletableFuture<?> saveStable(CachedOutput pOutput, com.mojang.serialization.DynamicOps<JsonElement> pOps, com.mojang.serialization.Codec<T> pCodec, T pValue, Path pPath) static <T> CompletableFuture<?> saveStable(CachedOutput pOutput, HolderLookup.Provider pRegistries, com.mojang.serialization.Codec<T> pCodec, T pValue, Path pPath)
-
Field Details
-
INDENT_WIDTH
Neo: Allows changing the indentation width used bysaveStable(net.minecraft.data.CachedOutput, net.minecraft.core.HolderLookup.Provider, com.mojang.serialization.Codec<T>, T, java.nio.file.Path). -
FIXED_ORDER_FIELDS
-
KEY_COMPARATOR
-
LOGGER
static final org.slf4j.Logger LOGGER
-
-
Method Details
-
run
-
getName
String getName() -
saveAll
static <T> CompletableFuture<?> saveAll(CachedOutput pOutput, com.mojang.serialization.Codec<T> pCodec, PackOutput.PathProvider pPathProvider, Map<ResourceLocation, T> pEntries) -
saveAll
static <T,E> CompletableFuture<?> saveAll(CachedOutput pOutput, com.mojang.serialization.Codec<E> pCodec, Function<T, Path> pPathGetter, Map<T, E> pEntries) -
saveAll
static <T,E> CompletableFuture<?> saveAll(CachedOutput pOutput, Function<E, JsonElement> pSerializer, Function<T, Path> pPathGetter, Map<T, E> pEntries) -
saveStable
static <T> CompletableFuture<?> saveStable(CachedOutput pOutput, HolderLookup.Provider pRegistries, com.mojang.serialization.Codec<T> pCodec, T pValue, Path pPath) -
saveStable
static <T> CompletableFuture<?> saveStable(CachedOutput pOutput, com.mojang.serialization.Codec<T> pCodec, T pValue, Path pPath) -
saveStable
private static <T> CompletableFuture<?> saveStable(CachedOutput pOutput, com.mojang.serialization.DynamicOps<JsonElement> pOps, com.mojang.serialization.Codec<T> pCodec, T pValue, Path pPath) -
saveStable
-