Package net.minecraft.nbt
Class StringNbtReader<T>
java.lang.Object
net.minecraft.nbt.StringNbtReader<T>
A class for reading a stringified NBT.
- API Note:
 - Methods in this class throw 
CommandSyntaxExceptionto indicate syntax errors within the NBT representation. - Mappings:
 Namespace Name named net/minecraft/nbt/StringNbtReaderintermediary net/minecraft/class_2522official vj
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charstatic final charprivate static final StringNbtReader<NbtElement> static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.serialization.Codec<NbtCompound> private final com.mojang.serialization.DynamicOps<T> private final PackratParser<T> static final com.mojang.serialization.Codec<NbtCompound> static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStringNbtReader(com.mojang.serialization.DynamicOps<T> ops, PackratParser<T> parser)  - 
Method Summary
Modifier and TypeMethodDescriptionprivate static NbtCompoundexpectCompound(com.mojang.brigadier.StringReader reader, NbtElement nbtElement) static <T> StringNbtReader<T> fromOps(com.mojang.serialization.DynamicOps<T> ops) com.mojang.serialization.DynamicOps<T> getOps()read(com.mojang.brigadier.StringReader reader) readAsArgument(com.mojang.brigadier.StringReader reader) static NbtCompoundreadCompound(String snbt) static NbtCompoundreadCompoundAsArgument(com.mojang.brigadier.StringReader reader)  
- 
Field Details
- 
TRAILING
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TRAILING- Mappings:
 Namespace Name Mixin selector named TRAILINGLnet/minecraft/nbt/StringNbtReader;TRAILING:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_11602Lnet/minecraft/class_2522;field_11602:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official aLvj;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
 - 
EXPECTED_COMPOUND
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXPECTED_COMPOUND- Mappings:
 Namespace Name Mixin selector named EXPECTED_COMPOUNDLnet/minecraft/nbt/StringNbtReader;EXPECTED_COMPOUND:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_56410Lnet/minecraft/class_2522;field_56410:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official bLvj;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
 - 
COMMA
public static final char COMMA- See Also:
 - Mappings:
 Namespace Name Mixin selector named COMMALnet/minecraft/nbt/StringNbtReader;COMMA:Cintermediary field_33265Lnet/minecraft/class_2522;field_33265:Cofficial cLvj;c:C
 - 
COLON
public static final char COLON- See Also:
 - Mappings:
 Namespace Name Mixin selector named COLONLnet/minecraft/nbt/StringNbtReader;COLON:Cintermediary field_33266Lnet/minecraft/class_2522;field_33266:Cofficial dLvj;d:C
 - 
DEFAULT_READER
- Mappings:
 Namespace Name Mixin selector named DEFAULT_READERLnet/minecraft/nbt/StringNbtReader;DEFAULT_READER:Lnet/minecraft/nbt/StringNbtReader;intermediary field_58028Lnet/minecraft/class_2522;field_58028:Lnet/minecraft/class_2522;official gLvj;g:Lvj;
 - 
STRINGIFIED_CODEC
- Mappings:
 Namespace Name Mixin selector named STRINGIFIED_CODECLnet/minecraft/nbt/StringNbtReader;STRINGIFIED_CODEC:Lcom/mojang/serialization/Codec;intermediary field_56411Lnet/minecraft/class_2522;field_56411:Lcom/mojang/serialization/Codec;official eLvj;e:Lcom/mojang/serialization/Codec;
 - 
NBT_COMPOUND_CODEC
- Mappings:
 Namespace Name Mixin selector named NBT_COMPOUND_CODECLnet/minecraft/nbt/StringNbtReader;NBT_COMPOUND_CODEC:Lcom/mojang/serialization/Codec;intermediary field_51469Lnet/minecraft/class_2522;field_51469:Lcom/mojang/serialization/Codec;official fLvj;f:Lcom/mojang/serialization/Codec;
 - 
ops
- Mappings:
 Namespace Name Mixin selector named opsLnet/minecraft/nbt/StringNbtReader;ops:Lcom/mojang/serialization/DynamicOps;intermediary field_58174Lnet/minecraft/class_2522;field_58174:Lcom/mojang/serialization/DynamicOps;official hLvj;h:Lcom/mojang/serialization/DynamicOps;
 - 
parser
- Mappings:
 Namespace Name Mixin selector named parserLnet/minecraft/nbt/StringNbtReader;parser:Lnet/minecraft/util/packrat/PackratParser;intermediary field_58029Lnet/minecraft/class_2522;field_58029:Lnet/minecraft/class_9408;official iLvj;i:Lbsx;
 
 - 
 - 
Constructor Details
- 
StringNbtReader
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/nbt/StringNbtReader;<init>(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/util/packrat/PackratParser;)Vintermediary <init>Lnet/minecraft/class_2522;<init>(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_9408;)Vofficial <init>Lvj;<init>(Lcom/mojang/serialization/DynamicOps;Lbsx;)V
 
 - 
 - 
Method Details
- 
getOps
- Mappings:
 Namespace Name Mixin selector named getOpsLnet/minecraft/nbt/StringNbtReader;getOps()Lcom/mojang/serialization/DynamicOps;intermediary method_68846Lnet/minecraft/class_2522;method_68846()Lcom/mojang/serialization/DynamicOps;official aLvj;a()Lcom/mojang/serialization/DynamicOps;
 - 
fromOps
- Mappings:
 Namespace Name Mixin selector named fromOpsLnet/minecraft/nbt/StringNbtReader;fromOps(Lcom/mojang/serialization/DynamicOps;)Lnet/minecraft/nbt/StringNbtReader;intermediary method_68662Lnet/minecraft/class_2522;method_68662(Lcom/mojang/serialization/DynamicOps;)Lnet/minecraft/class_2522;official aLvj;a(Lcom/mojang/serialization/DynamicOps;)Lvj;
 - 
expectCompound
private static NbtCompound expectCompound(com.mojang.brigadier.StringReader reader, NbtElement nbtElement) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
 Namespace Name Mixin selector named expectCompoundLnet/minecraft/nbt/StringNbtReader;expectCompound(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/nbt/NbtElement;)Lnet/minecraft/nbt/NbtCompound;intermediary method_67311Lnet/minecraft/class_2522;method_67311(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_2520;)Lnet/minecraft/class_2487;official aLvj;a(Lcom/mojang/brigadier/StringReader;Lvi;)Lui;
 - 
readCompound
public static NbtCompound readCompound(String snbt) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
 Namespace Name Mixin selector named readCompoundLnet/minecraft/nbt/StringNbtReader;readCompound(Ljava/lang/String;)Lnet/minecraft/nbt/NbtCompound;intermediary method_67315Lnet/minecraft/class_2522;method_67315(Ljava/lang/String;)Lnet/minecraft/class_2487;official aLvj;a(Ljava/lang/String;)Lui;
 - 
read
- Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
 Namespace Name Mixin selector named readLnet/minecraft/nbt/StringNbtReader;read(Ljava/lang/String;)Ljava/lang/Object;intermediary method_67313Lnet/minecraft/class_2522;method_67313(Ljava/lang/String;)Ljava/lang/Object;official bLvj;b(Ljava/lang/String;)Ljava/lang/Object;
 - 
read
public T read(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
 Namespace Name Mixin selector named readLnet/minecraft/nbt/StringNbtReader;read(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;intermediary method_67312Lnet/minecraft/class_2522;method_67312(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;official aLvj;a(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
 - 
readAsArgument
public T readAsArgument(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
 Namespace Name Mixin selector named readAsArgumentLnet/minecraft/nbt/StringNbtReader;readAsArgument(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;intermediary method_67319Lnet/minecraft/class_2522;method_67319(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;official bLvj;b(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
 - 
readCompoundAsArgument
public static NbtCompound readCompoundAsArgument(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
 Namespace Name Mixin selector named readCompoundAsArgumentLnet/minecraft/nbt/StringNbtReader;readCompoundAsArgument(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/nbt/NbtCompound;intermediary method_67310Lnet/minecraft/class_2522;method_67310(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2487;official cLvj;c(Lcom/mojang/brigadier/StringReader;)Lui;
 
 -