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 Map<ResourceKey<?>, List<ICondition>> Deprecated.Deprecated.private final PackOutputDeprecated.private final CompletableFuture<HolderLookup.Provider> Deprecated.Fields inherited from interface DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionRegistriesDatapackGenerator(PackOutput output, CompletableFuture<HolderLookup.Provider> registries) Deprecated.RegistriesDatapackGenerator(PackOutput output, CompletableFuture<HolderLookup.Provider> registries, @Nullable Set<String> modIds) Deprecated.RegistriesDatapackGenerator(PackOutput output, CompletableFuture<HolderLookup.Provider> registries, @Nullable Set<String> modIds, Map<ResourceKey<?>, List<ICondition>> conditions) 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) 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.getName()Deprecated.run(CachedOutput cache) Deprecated.
-
Field Details
-
output
Deprecated. -
registries
Deprecated. -
namespacePredicate
-
conditions
Deprecated.
-
-
Constructor Details
-
RegistriesDatapackGenerator
@Deprecated public RegistriesDatapackGenerator(PackOutput output, CompletableFuture<HolderLookup.Provider> registries) Deprecated. -
RegistriesDatapackGenerator
public RegistriesDatapackGenerator(PackOutput output, CompletableFuture<HolderLookup.Provider> registries, @Nullable Set<String> modIds) Deprecated. -
RegistriesDatapackGenerator
public RegistriesDatapackGenerator(PackOutput output, CompletableFuture<HolderLookup.Provider> registries, @Nullable Set<String> modIds, Map<ResourceKey<?>, List<ICondition>> conditions) Deprecated.
-
-
Method Details
-
run
Deprecated.- Specified by:
runin interfaceDataProvider
-
dumpRegistryCap
private <T> Optional<CompletableFuture<?>> dumpRegistryCap(CachedOutput cache, HolderLookup.Provider 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