Package net.minecraft.data
Class SnbtProvider
java.lang.Object
net.minecraft.data.SnbtProvider
- All Implemented Interfaces:
DataProvider
public class SnbtProvider extends Object implements DataProvider
- Mappings:
Namespace Name official jx
intermediary net/minecraft/class_2463
named net/minecraft/data/SnbtProvider
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SnbtProvider.class_5621
(package private) static class
SnbtProvider.CompressedData
static interface
SnbtProvider.Tweaker
-
Field Summary
Fields Modifier and Type Field Description private static Path
field_24615
private static Logger
LOGGER
private DataGenerator
root
private List<SnbtProvider.Tweaker>
write
Fields inherited from interface net.minecraft.data.DataProvider
SHA1
-
Constructor Summary
Constructors Constructor Description SnbtProvider(DataGenerator dataGenerator)
-
Method Summary
Modifier and Type Method 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 CompoundTag
write(String string, CompoundTag compoundTag)
private void
write(DataCache dataCache, SnbtProvider.CompressedData compressedData, Path path)
-
Field Details
-
field_24615
- Mappings:
Namespace Name Mixin selector official b
Ljx;b:Ljava/nio/file/Path;
intermediary field_24615
Lnet/minecraft/class_2463;field_24615:Ljava/nio/file/Path;
named field_24615
Lnet/minecraft/data/SnbtProvider;field_24615:Ljava/nio/file/Path;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Ljx;c:Lorg/apache/logging/log4j/Logger;
intermediary field_11454
Lnet/minecraft/class_2463;field_11454:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/data/SnbtProvider;LOGGER:Lorg/apache/logging/log4j/Logger;
-
root
- Mappings:
Namespace Name Mixin selector official d
Ljx;d:Lhs;
intermediary field_11453
Lnet/minecraft/class_2463;field_11453:Lnet/minecraft/class_2403;
named root
Lnet/minecraft/data/SnbtProvider;root:Lnet/minecraft/data/DataGenerator;
-
write
- Mappings:
Namespace Name Mixin selector official e
Ljx;e:Ljava/util/List;
intermediary field_20309
Lnet/minecraft/class_2463;field_20309:Ljava/util/List;
named write
Lnet/minecraft/data/SnbtProvider;write:Ljava/util/List;
-
-
Constructor Details
-
SnbtProvider
-
-
Method Details
-
addWriter
- Mappings:
Namespace Name Mixin selector official a
Ljx;a(Ljx$a;)Ljx;
intermediary method_21672
Lnet/minecraft/class_2463;method_21672(Lnet/minecraft/class_2463$class_4460;)Lnet/minecraft/class_2463;
named addWriter
Lnet/minecraft/data/SnbtProvider;addWriter(Lnet/minecraft/data/SnbtProvider$Tweaker;)Lnet/minecraft/data/SnbtProvider;
-
write
- Mappings:
Namespace Name Mixin selector official a
Ljx;a(Ljava/lang/String;Lmq;)Lmq;
intermediary method_21673
Lnet/minecraft/class_2463;method_21673(Ljava/lang/String;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named write
Lnet/minecraft/data/SnbtProvider;write(Ljava/lang/String;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
run
- Specified by:
run
in interfaceDataProvider
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lht;a(Lhu;)V
intermediary method_10319
Lnet/minecraft/class_2405;method_10319(Lnet/minecraft/class_2408;)V
named run
Lnet/minecraft/data/DataProvider;run(Lnet/minecraft/data/DataCache;)V
-
getName
- Specified by:
getName
in interfaceDataProvider
- Mappings:
Namespace Name Mixin selector official a
Lht;a()Ljava/lang/String;
intermediary method_10321
Lnet/minecraft/class_2405;method_10321()Ljava/lang/String;
named getName
Lnet/minecraft/data/DataProvider;getName()Ljava/lang/String;
-
getFileName
- Mappings:
Namespace Name Mixin selector official a
Ljx;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
intermediary method_10500
Lnet/minecraft/class_2463;method_10500(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
named getFileName
Lnet/minecraft/data/SnbtProvider;getFileName(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
-
toCompressedNbt
- Mappings:
Namespace Name Mixin selector official a
Ljx;a(Ljava/nio/file/Path;Ljava/lang/String;)Ljx$c;
intermediary method_22144
Lnet/minecraft/class_2463;method_22144(Ljava/nio/file/Path;Ljava/lang/String;)Lnet/minecraft/class_2463$class_4511;
named toCompressedNbt
Lnet/minecraft/data/SnbtProvider;toCompressedNbt(Ljava/nio/file/Path;Ljava/lang/String;)Lnet/minecraft/data/SnbtProvider$CompressedData;
-
write
- Mappings:
Namespace Name Mixin selector official a
Ljx;a(Lhu;Ljx$c;Ljava/nio/file/Path;)V
intermediary method_10497
Lnet/minecraft/class_2463;method_10497(Lnet/minecraft/class_2408;Lnet/minecraft/class_2463$class_4511;Ljava/nio/file/Path;)V
named write
Lnet/minecraft/data/SnbtProvider;write(Lnet/minecraft/data/DataCache;Lnet/minecraft/data/SnbtProvider$CompressedData;Ljava/nio/file/Path;)V
-