Class NbtToSnbt
java.lang.Object
net.minecraft.data.structures.NbtToSnbt
- All Implemented Interfaces:
DataProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface DataProvider
DataProvider.Factory<T> -
Field Summary
FieldsFields inherited from interface DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable PathconvertStructure(CachedOutput cache, Path path, String name, Path output) final StringgetName()private static Stringrun(CachedOutput cache) static voidwriteSnbt(CachedOutput cache, Path destination, String text)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
inputFolders
-
output
-
-
Constructor Details
-
NbtToSnbt
-
-
Method Details
-
run
- Specified by:
runin interfaceDataProvider
-
getName
- Specified by:
getNamein interfaceDataProvider
-
getName
-
convertStructure
public static @Nullable Path convertStructure(CachedOutput cache, Path path, String name, Path output) -
writeSnbt
- Throws:
IOException
-