Package net.minecraft.data.structures
Class NbtToSnbt
java.lang.Object
net.minecraft.data.structures.NbtToSnbt
- All Implemented Interfaces:
DataProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
FieldsFields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Path
convertStructure
(CachedOutput pOutput, Path pNbtPath, String pName, Path pDirectoryPath) final String
getName()
private static String
Gets the name of the given NBT file, based on its path and the input directory.run
(CachedOutput pOutput) static void
writeSnbt
(CachedOutput pOutput, Path pPath, String pContents)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
inputFolders
-
output
-
-
Constructor Details
-
NbtToSnbt
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
getName
- Specified by:
getName
in interfaceDataProvider
-
getName
Gets the name of the given NBT file, based on its path and the input directory. The result does not have the ".nbt" extension. -
convertStructure
@Nullable public static Path convertStructure(CachedOutput pOutput, Path pNbtPath, String pName, Path pDirectoryPath) -
writeSnbt
- Throws:
IOException
-