Class RegistriesDatapackGenerator
java.lang.Object
net.minecraft.data.registries.RegistriesDatapackGenerator
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
DatapackBuiltinEntriesProvider
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataProvider
DataProvider.Factory<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringDeprecated.Deprecated.private final PackOutputDeprecated.private final CompletableFuture<HolderLookup.Provider> Deprecated.private final CompletableFuture<RegistriesWithConditions> Deprecated.private final Collection<RegistryDataLoader.RegistryData<?>> Deprecated.Fields inherited from interface DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionRegistriesDatapackGenerator(PackOutput output, String name, Collection<RegistryDataLoader.RegistryData<?>> registryData, CompletableFuture<HolderLookup.Provider> registryContents) Deprecated.RegistriesDatapackGenerator(PackOutput output, String name, Collection<RegistryDataLoader.RegistryData<?>> registryData, CompletableFuture<RegistriesWithConditions> registryContents, @Nullable Set<String> modIds) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> Optional<CompletableFuture<?>> dumpRegistryCap(CachedOutput cache, HolderLookup.Provider registries, com.mojang.serialization.DynamicOps<JsonElement> writeOps, RegistryDataLoader.RegistryData<T> v) private <T> Optional<CompletableFuture<?>> dumpRegistryCap(CachedOutput cache, RegistriesWithConditions registries, com.mojang.serialization.DynamicOps<JsonElement> writeOps, RegistryDataLoader.RegistryData<T> v) Deprecated.private static <E> CompletableFuture<?> dumpValue(Path path, CachedOutput cache, com.mojang.serialization.DynamicOps<JsonElement> ops, com.mojang.serialization.Encoder<Optional<WithConditions<E>>> codec, Optional<WithConditions<E>> value) Deprecated.static DataProviderforReloadableLayer(PackOutput output, CompletableFuture<HolderLookup.Provider> registryContents) Deprecated.static RegistriesDatapackGeneratorforWorldLayer(PackOutput output, CompletableFuture<HolderLookup.Provider> registryContents) Deprecated.getName()Deprecated.run(CachedOutput cache) Deprecated.
-
Field Details
-
output
Deprecated. -
name
Deprecated. -
registryData
Deprecated. -
registries
Deprecated. -
namespacePredicate
-
registriesWithConditions
Deprecated.
-
-
Constructor Details
-
RegistriesDatapackGenerator
@Deprecated public RegistriesDatapackGenerator(PackOutput output, String name, Collection<RegistryDataLoader.RegistryData<?>> registryData, CompletableFuture<HolderLookup.Provider> registryContents) Deprecated. -
RegistriesDatapackGenerator
public RegistriesDatapackGenerator(PackOutput output, String name, Collection<RegistryDataLoader.RegistryData<?>> registryData, CompletableFuture<RegistriesWithConditions> registryContents, @Nullable Set<String> modIds) Deprecated.
-
-
Method Details
-
forWorldLayer
public static RegistriesDatapackGenerator forWorldLayer(PackOutput output, CompletableFuture<HolderLookup.Provider> registryContents) Deprecated. -
forReloadableLayer
public static DataProvider forReloadableLayer(PackOutput output, CompletableFuture<HolderLookup.Provider> registryContents) Deprecated. -
run
Deprecated.- Specified by:
runin interfaceDataProvider
-
dumpRegistryCap
@Deprecated private <T> Optional<CompletableFuture<?>> dumpRegistryCap(CachedOutput cache, HolderLookup.Provider registries, com.mojang.serialization.DynamicOps<JsonElement> writeOps, RegistryDataLoader.RegistryData<T> v) -
dumpRegistryCap
private <T> Optional<CompletableFuture<?>> dumpRegistryCap(CachedOutput cache, RegistriesWithConditions registries, com.mojang.serialization.DynamicOps<JsonElement> writeOps, RegistryDataLoader.RegistryData<T> v) Deprecated. -
dumpValue
private static <E> CompletableFuture<?> dumpValue(Path path, CachedOutput cache, com.mojang.serialization.DynamicOps<JsonElement> ops, com.mojang.serialization.Encoder<Optional<WithConditions<E>>> codec, Optional<WithConditions<E>> value) Deprecated. -
getName
-
DatapackBuiltinEntriesProviderinstead