Package net.minecraft.data
Interface DataProvider
- All Known Implementing Classes:
AdvancementProvider,AtlasProvider,BannerPatternTagsProvider,BiomeParametersDumpReport,BiomeTagsProvider,BlockListReport,BlockTagsProvider,CommandsReport,DamageTypeTagsProvider,DataMapProvider,DatapackBuiltinEntriesProvider,DatapackStructureReport,EnchantmentTagsProvider,EntityTypeTagsProvider,EquipmentAssetProvider,FlatLevelGeneratorPresetTagsProvider,FluidTagsProvider,GameEventTagsProvider,GlobalLootModifierProvider,InstrumentTagsProvider,IntrinsicHolderTagsProvider,ItemListReport,ItemTagsProvider,JsonCodecProvider,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,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 output) static <T,E> CompletableFuture <?> saveAll(CachedOutput output, com.mojang.serialization.Codec<E> codec, Function<T, Path> pathGetter, Map<T, E> entries) static <T> CompletableFuture<?> saveAll(CachedOutput output, com.mojang.serialization.Codec<T> codec, PackOutput.PathProvider pathProvider, Map<ResourceLocation, T> entries) static <T,E> CompletableFuture <?> saveAll(CachedOutput output, Function<E, JsonElement> serializer, Function<T, Path> pathGetter, Map<T, E> entries) static CompletableFuture<?> saveStable(CachedOutput output, JsonElement json, Path path) static <T> CompletableFuture<?> saveStable(CachedOutput output, com.mojang.serialization.Codec<T> codec, T value, Path path) private static <T> CompletableFuture<?> saveStable(CachedOutput output, com.mojang.serialization.DynamicOps<JsonElement> ops, com.mojang.serialization.Codec<T> codec, T value, Path path) static <T> CompletableFuture<?> saveStable(CachedOutput output, HolderLookup.Provider registries, com.mojang.serialization.Codec<T> codec, T value, Path path)
-
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 output, com.mojang.serialization.Codec<T> codec, PackOutput.PathProvider pathProvider, Map<ResourceLocation, T> entries) -
saveAll
static <T,E> CompletableFuture<?> saveAll(CachedOutput output, com.mojang.serialization.Codec<E> codec, Function<T, Path> pathGetter, Map<T, E> entries) -
saveAll
static <T,E> CompletableFuture<?> saveAll(CachedOutput output, Function<E, JsonElement> serializer, Function<T, Path> pathGetter, Map<T, E> entries) -
saveStable
static <T> CompletableFuture<?> saveStable(CachedOutput output, HolderLookup.Provider registries, com.mojang.serialization.Codec<T> codec, T value, Path path) -
saveStable
static <T> CompletableFuture<?> saveStable(CachedOutput output, com.mojang.serialization.Codec<T> codec, T value, Path path) -
saveStable
private static <T> CompletableFuture<?> saveStable(CachedOutput output, com.mojang.serialization.DynamicOps<JsonElement> ops, com.mojang.serialization.Codec<T> codec, T value, Path path) -
saveStable
-