Class SnbtToNbt
java.lang.Object
net.minecraft.data.structures.SnbtToNbt
- All Implemented Interfaces:
DataProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprivate static classWraps exceptions thrown while reading structures to include the path of the structure in the exception message.private static final recordNested classes/interfaces inherited from interface DataProvider
DataProvider.Factory<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<SnbtToNbt.Filter> private static final org.slf4j.Loggerprivate final PackOutputFields inherited from interface DataProvider
FIXED_ORDER_FIELDS, INDENT_WIDTH, KEY_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionSnbtToNbt(PackOutput output, Iterable<Path> inputFolders) SnbtToNbt(PackOutput output, Path inputFolder) -
Method Summary
Modifier and TypeMethodDescriptionaddFilter(SnbtToNbt.Filter filter) private CompoundTagapplyFilters(String name, CompoundTag input) final StringgetName()private StringGets the name of the given SNBT file, based on its path and the input directory.private SnbtToNbt.TaskResultreadStructure(Path path, String name) run(CachedOutput cache) private voidstoreStructureIfChanged(CachedOutput cache, SnbtToNbt.TaskResult task, Path output)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
output
-
inputFolders
-
filters
-
-
Constructor Details
-
SnbtToNbt
-
SnbtToNbt
-
-
Method Details
-
addFilter
-
applyFilters
-
run
- Specified by:
runin interfaceDataProvider
-
getName
- Specified by:
getNamein interfaceDataProvider
-
getName
-
readStructure
-
storeStructureIfChanged
-