public class SnbtProvider extends Object implements DataProvider
Modifier and Type | Class and Description |
---|---|
(package private) static class |
SnbtProvider.CompressedData |
static interface |
SnbtProvider.Tweaker |
Modifier and Type | Field and Description |
---|---|
private static Path |
field_24615 |
private static Logger |
LOGGER |
private DataGenerator |
root |
private List<SnbtProvider.Tweaker> |
write |
SHA1
Constructor and Description |
---|
SnbtProvider(DataGenerator dataGenerator) |
Modifier and Type | Method and Description |
---|---|
SnbtProvider |
addWriter(SnbtProvider.Tweaker tweaker) |
private String |
getFileName(Path root,
Path file) |
String |
getName() |
void |
run(DataCache cache) |
private SnbtProvider.CompressedData |
toCompressedNbt(Path path,
String name) |
private void |
write(DataCache dataCache,
SnbtProvider.CompressedData compressedData,
Path path) |
private CompoundTag |
write(String string,
CompoundTag compoundTag) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeToPath
private static final Logger LOGGER
private final DataGenerator root
private final List<SnbtProvider.Tweaker> write
public SnbtProvider(DataGenerator dataGenerator)
public SnbtProvider addWriter(SnbtProvider.Tweaker tweaker)
private CompoundTag write(String string, CompoundTag compoundTag)
public void run(DataCache cache) throws IOException
run
in interface DataProvider
IOException
public String getName()
getName
in interface DataProvider
@Nullable private SnbtProvider.CompressedData toCompressedNbt(Path path, String name)
private void write(DataCache dataCache, SnbtProvider.CompressedData compressedData, Path path)