Package net.minecraft.data.info
Class WorldgenRegistryDumpReport
java.lang.Object
net.minecraft.data.info.WorldgenRegistryDumpReport
- All Implemented Interfaces:
DataProvider
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DataGenerator
private static final com.google.gson.Gson
private static final org.slf4j.Logger
Fields inherited from interface net.minecraft.data.DataProvider
SHA1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static Path
createPath
(Path p_194705_, ResourceLocation p_194706_, ResourceLocation p_194707_) private static <E,
T extends Registry<E>>
voiddumpRegistry
(Path p_194698_, HashCache p_194699_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_194700_, ResourceKey<? extends T> p_194701_, T p_194702_, com.mojang.serialization.Encoder<E> p_194703_) private static <T> void
dumpRegistryCap
(HashCache p_194684_, Path p_194685_, RegistryAccess p_194686_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_194687_, RegistryAccess.RegistryData<T> p_194688_) private static <E> void
dumpValue
(Path p_194692_, HashCache p_194693_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_194694_, com.mojang.serialization.Encoder<E> p_194695_, E p_194696_) getName()
private static Path
resolveTopPath
(Path p_194690_) void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
generator
-
-
Constructor Details
-
WorldgenRegistryDumpReport
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
dumpRegistryCap
private static <T> void dumpRegistryCap(HashCache p_194684_, Path p_194685_, RegistryAccess p_194686_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_194687_, RegistryAccess.RegistryData<T> p_194688_) -
dumpRegistry
private static <E,T extends Registry<E>> void dumpRegistry(Path p_194698_, HashCache p_194699_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_194700_, ResourceKey<? extends T> p_194701_, T p_194702_, com.mojang.serialization.Encoder<E> p_194703_) -
dumpValue
-
createPath
private static Path createPath(Path p_194705_, ResourceLocation p_194706_, ResourceLocation p_194707_) -
resolveTopPath
-
getName
- Specified by:
getName
in interfaceDataProvider
-