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
CommandSyntaxException
to indicate syntax errors within the NBT representation. - Mappings:
Namespace Name named net/minecraft/nbt/StringNbtReader
intermediary net/minecraft/class_2522
official vj
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final char
static final char
private static final StringNbtReader
<NbtElement> static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static 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
ConstructorsModifierConstructorDescriptionprivate
StringNbtReader
(com.mojang.serialization.DynamicOps<T> ops, PackratParser<T> parser) -
Method Summary
Modifier and TypeMethodDescriptionprivate static NbtCompound
expectCompound
(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 NbtCompound
readCompound
(String snbt) static NbtCompound
readCompoundAsArgument
(com.mojang.brigadier.StringReader reader)
-
Field Details
-
TRAILING
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TRAILING- Mappings:
Namespace Name Mixin selector named TRAILING
Lnet/minecraft/nbt/StringNbtReader;TRAILING:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_11602
Lnet/minecraft/class_2522;field_11602:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
official a
Lvj;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_COMPOUND
Lnet/minecraft/nbt/StringNbtReader;EXPECTED_COMPOUND:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_56410
Lnet/minecraft/class_2522;field_56410:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
official b
Lvj;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
COMMA
public static final char COMMA- See Also:
- Mappings:
Namespace Name Mixin selector named COMMA
Lnet/minecraft/nbt/StringNbtReader;COMMA:C
intermediary field_33265
Lnet/minecraft/class_2522;field_33265:C
official c
Lvj;c:C
-
COLON
public static final char COLON- See Also:
- Mappings:
Namespace Name Mixin selector named COLON
Lnet/minecraft/nbt/StringNbtReader;COLON:C
intermediary field_33266
Lnet/minecraft/class_2522;field_33266:C
official d
Lvj;d:C
-
DEFAULT_READER
- Mappings:
Namespace Name Mixin selector named DEFAULT_READER
Lnet/minecraft/nbt/StringNbtReader;DEFAULT_READER:Lnet/minecraft/nbt/StringNbtReader;
intermediary field_58028
Lnet/minecraft/class_2522;field_58028:Lnet/minecraft/class_2522;
official g
Lvj;g:Lvj;
-
STRINGIFIED_CODEC
- Mappings:
Namespace Name Mixin selector named STRINGIFIED_CODEC
Lnet/minecraft/nbt/StringNbtReader;STRINGIFIED_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56411
Lnet/minecraft/class_2522;field_56411:Lcom/mojang/serialization/Codec;
official e
Lvj;e:Lcom/mojang/serialization/Codec;
-
NBT_COMPOUND_CODEC
- Mappings:
Namespace Name Mixin selector named NBT_COMPOUND_CODEC
Lnet/minecraft/nbt/StringNbtReader;NBT_COMPOUND_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_51469
Lnet/minecraft/class_2522;field_51469:Lcom/mojang/serialization/Codec;
official f
Lvj;f:Lcom/mojang/serialization/Codec;
-
ops
- Mappings:
Namespace Name Mixin selector named ops
Lnet/minecraft/nbt/StringNbtReader;ops:Lcom/mojang/serialization/DynamicOps;
intermediary field_58174
Lnet/minecraft/class_2522;field_58174:Lcom/mojang/serialization/DynamicOps;
official h
Lvj;h:Lcom/mojang/serialization/DynamicOps;
-
parser
- Mappings:
Namespace Name Mixin selector named parser
Lnet/minecraft/nbt/StringNbtReader;parser:Lnet/minecraft/util/packrat/PackratParser;
intermediary field_58029
Lnet/minecraft/class_2522;field_58029:Lnet/minecraft/class_9408;
official i
Lvj;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;)V
intermediary <init>
Lnet/minecraft/class_2522;<init>(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_9408;)V
official <init>
Lvj;<init>(Lcom/mojang/serialization/DynamicOps;Lbsx;)V
-
-
Method Details
-
getOps
- Mappings:
Namespace Name Mixin selector named getOps
Lnet/minecraft/nbt/StringNbtReader;getOps()Lcom/mojang/serialization/DynamicOps;
intermediary method_68846
Lnet/minecraft/class_2522;method_68846()Lcom/mojang/serialization/DynamicOps;
official a
Lvj;a()Lcom/mojang/serialization/DynamicOps;
-
fromOps
- Mappings:
Namespace Name Mixin selector named fromOps
Lnet/minecraft/nbt/StringNbtReader;fromOps(Lcom/mojang/serialization/DynamicOps;)Lnet/minecraft/nbt/StringNbtReader;
intermediary method_68662
Lnet/minecraft/class_2522;method_68662(Lcom/mojang/serialization/DynamicOps;)Lnet/minecraft/class_2522;
official a
Lvj;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 expectCompound
Lnet/minecraft/nbt/StringNbtReader;expectCompound(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/nbt/NbtElement;)Lnet/minecraft/nbt/NbtCompound;
intermediary method_67311
Lnet/minecraft/class_2522;method_67311(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_2520;)Lnet/minecraft/class_2487;
official a
Lvj;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 readCompound
Lnet/minecraft/nbt/StringNbtReader;readCompound(Ljava/lang/String;)Lnet/minecraft/nbt/NbtCompound;
intermediary method_67315
Lnet/minecraft/class_2522;method_67315(Ljava/lang/String;)Lnet/minecraft/class_2487;
official a
Lvj;a(Ljava/lang/String;)Lui;
-
read
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector named read
Lnet/minecraft/nbt/StringNbtReader;read(Ljava/lang/String;)Ljava/lang/Object;
intermediary method_67313
Lnet/minecraft/class_2522;method_67313(Ljava/lang/String;)Ljava/lang/Object;
official b
Lvj;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 read
Lnet/minecraft/nbt/StringNbtReader;read(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
intermediary method_67312
Lnet/minecraft/class_2522;method_67312(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
official a
Lvj;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 readAsArgument
Lnet/minecraft/nbt/StringNbtReader;readAsArgument(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
intermediary method_67319
Lnet/minecraft/class_2522;method_67319(Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
official b
Lvj;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 readCompoundAsArgument
Lnet/minecraft/nbt/StringNbtReader;readCompoundAsArgument(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/nbt/NbtCompound;
intermediary method_67310
Lnet/minecraft/class_2522;method_67310(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2487;
official c
Lvj;c(Lcom/mojang/brigadier/StringReader;)Lui;
-