Package net.minecraft.nbt
Class StringNbtReader
java.lang.Object
net.minecraft.nbt.StringNbtReader
public class StringNbtReader extends Object
- Mappings:
Namespace Name official nj
intermediary net/minecraft/class_2522
named net/minecraft/nbt/StringNbtReader
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ARRAY_INVALID
static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ARRAY_MIXED
private static Pattern
BYTE_PATTERN
private static Pattern
DOUBLE_PATTERN
private static Pattern
DOUBLE_PATTERN_IMPLICIT
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
EXPECTED_KEY
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
EXPECTED_VALUE
private static Pattern
FLOAT_PATTERN
private static Pattern
INT_PATTERN
static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
LIST_MIXED
private static Pattern
LONG_PATTERN
private com.mojang.brigadier.StringReader
reader
private static Pattern
SHORT_PATTERN
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
TRAILING
-
Constructor Summary
Constructors Constructor Description StringNbtReader(com.mojang.brigadier.StringReader reader)
-
Method Summary
Modifier and Type Method Description private void
expect(char char2)
static CompoundTag
parse(String string)
CompoundTag
parseCompoundTag()
private Tag
parseListTag()
private Tag
parsePrimitive(String input)
Tag
parseTag()
protected Tag
parseTagArray()
protected Tag
parseTagPrimitive()
private Tag
parseTagPrimitiveArray()
private <T extends Number>
List<T>readArray(TagReader<?> arrayTypeReader, TagReader<?> typeReader)
private boolean
readComma()
(package private) CompoundTag
readCompoundTag()
protected String
readString()
-
Field Details
-
TRAILING
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TRAILING- Mappings:
Namespace Name Mixin selector official a
Lnj;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_11602
Lnet/minecraft/class_2522;field_11602:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named TRAILING
Lnet/minecraft/nbt/StringNbtReader;TRAILING:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
EXPECTED_KEY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXPECTED_KEY- Mappings:
Namespace Name Mixin selector official b
Lnj;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_11608
Lnet/minecraft/class_2522;field_11608:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named EXPECTED_KEY
Lnet/minecraft/nbt/StringNbtReader;EXPECTED_KEY:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
EXPECTED_VALUE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXPECTED_VALUE- Mappings:
Namespace Name Mixin selector official c
Lnj;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_11605
Lnet/minecraft/class_2522;field_11605:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named EXPECTED_VALUE
Lnet/minecraft/nbt/StringNbtReader;EXPECTED_VALUE:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
LIST_MIXED
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType LIST_MIXED- Mappings:
Namespace Name Mixin selector official d
Lnj;d:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_11603
Lnet/minecraft/class_2522;field_11603:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
named LIST_MIXED
Lnet/minecraft/nbt/StringNbtReader;LIST_MIXED:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
ARRAY_MIXED
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ARRAY_MIXED- Mappings:
Namespace Name Mixin selector official e
Lnj;e:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
intermediary field_11597
Lnet/minecraft/class_2522;field_11597:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
named ARRAY_MIXED
Lnet/minecraft/nbt/StringNbtReader;ARRAY_MIXED:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
-
ARRAY_INVALID
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ARRAY_INVALID- Mappings:
Namespace Name Mixin selector official f
Lnj;f:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_11604
Lnet/minecraft/class_2522;field_11604:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named ARRAY_INVALID
Lnet/minecraft/nbt/StringNbtReader;ARRAY_INVALID:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
DOUBLE_PATTERN_IMPLICIT
- Mappings:
Namespace Name Mixin selector official g
Lnj;g:Ljava/util/regex/Pattern;
intermediary field_11607
Lnet/minecraft/class_2522;field_11607:Ljava/util/regex/Pattern;
named DOUBLE_PATTERN_IMPLICIT
Lnet/minecraft/nbt/StringNbtReader;DOUBLE_PATTERN_IMPLICIT:Ljava/util/regex/Pattern;
-
DOUBLE_PATTERN
- Mappings:
Namespace Name Mixin selector official h
Lnj;h:Ljava/util/regex/Pattern;
intermediary field_11600
Lnet/minecraft/class_2522;field_11600:Ljava/util/regex/Pattern;
named DOUBLE_PATTERN
Lnet/minecraft/nbt/StringNbtReader;DOUBLE_PATTERN:Ljava/util/regex/Pattern;
-
FLOAT_PATTERN
- Mappings:
Namespace Name Mixin selector official i
Lnj;i:Ljava/util/regex/Pattern;
intermediary field_11596
Lnet/minecraft/class_2522;field_11596:Ljava/util/regex/Pattern;
named FLOAT_PATTERN
Lnet/minecraft/nbt/StringNbtReader;FLOAT_PATTERN:Ljava/util/regex/Pattern;
-
BYTE_PATTERN
- Mappings:
Namespace Name Mixin selector official j
Lnj;j:Ljava/util/regex/Pattern;
intermediary field_11606
Lnet/minecraft/class_2522;field_11606:Ljava/util/regex/Pattern;
named BYTE_PATTERN
Lnet/minecraft/nbt/StringNbtReader;BYTE_PATTERN:Ljava/util/regex/Pattern;
-
LONG_PATTERN
- Mappings:
Namespace Name Mixin selector official k
Lnj;k:Ljava/util/regex/Pattern;
intermediary field_11609
Lnet/minecraft/class_2522;field_11609:Ljava/util/regex/Pattern;
named LONG_PATTERN
Lnet/minecraft/nbt/StringNbtReader;LONG_PATTERN:Ljava/util/regex/Pattern;
-
SHORT_PATTERN
- Mappings:
Namespace Name Mixin selector official l
Lnj;l:Ljava/util/regex/Pattern;
intermediary field_11601
Lnet/minecraft/class_2522;field_11601:Ljava/util/regex/Pattern;
named SHORT_PATTERN
Lnet/minecraft/nbt/StringNbtReader;SHORT_PATTERN:Ljava/util/regex/Pattern;
-
INT_PATTERN
- Mappings:
Namespace Name Mixin selector official m
Lnj;m:Ljava/util/regex/Pattern;
intermediary field_11599
Lnet/minecraft/class_2522;field_11599:Ljava/util/regex/Pattern;
named INT_PATTERN
Lnet/minecraft/nbt/StringNbtReader;INT_PATTERN:Ljava/util/regex/Pattern;
-
reader
private final com.mojang.brigadier.StringReader reader- Mappings:
Namespace Name Mixin selector official n
Lnj;n:Lcom/mojang/brigadier/StringReader;
intermediary field_11598
Lnet/minecraft/class_2522;field_11598:Lcom/mojang/brigadier/StringReader;
named reader
Lnet/minecraft/nbt/StringNbtReader;reader:Lcom/mojang/brigadier/StringReader;
-
-
Constructor Details
-
StringNbtReader
public StringNbtReader(com.mojang.brigadier.StringReader reader)- Mappings:
Namespace Name Mixin selector official <init>
Lnj;<init>(Lcom/mojang/brigadier/StringReader;)V
intermediary <init>
Lnet/minecraft/class_2522;<init>(Lcom/mojang/brigadier/StringReader;)V
named <init>
Lnet/minecraft/nbt/StringNbtReader;<init>(Lcom/mojang/brigadier/StringReader;)V
-
-
Method Details
-
parse
public static CompoundTag parse(String string) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lnj;a(Ljava/lang/String;)Lmq;
intermediary method_10718
Lnet/minecraft/class_2522;method_10718(Ljava/lang/String;)Lnet/minecraft/class_2487;
named parse
Lnet/minecraft/nbt/StringNbtReader;parse(Ljava/lang/String;)Lnet/minecraft/nbt/CompoundTag;
-
readCompoundTag
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lnj;a()Lmq;
intermediary method_10721
Lnet/minecraft/class_2522;method_10721()Lnet/minecraft/class_2487;
named readCompoundTag
Lnet/minecraft/nbt/StringNbtReader;readCompoundTag()Lnet/minecraft/nbt/CompoundTag;
-
readString
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official b
Lnj;b()Ljava/lang/String;
intermediary method_10725
Lnet/minecraft/class_2522;method_10725()Ljava/lang/String;
named readString
Lnet/minecraft/nbt/StringNbtReader;readString()Ljava/lang/String;
-
parseTagPrimitive
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official c
Lnj;c()Lni;
intermediary method_10722
Lnet/minecraft/class_2522;method_10722()Lnet/minecraft/class_2520;
named parseTagPrimitive
Lnet/minecraft/nbt/StringNbtReader;parseTagPrimitive()Lnet/minecraft/nbt/Tag;
-
parsePrimitive
- Mappings:
Namespace Name Mixin selector official b
Lnj;b(Ljava/lang/String;)Lni;
intermediary method_10731
Lnet/minecraft/class_2522;method_10731(Ljava/lang/String;)Lnet/minecraft/class_2520;
named parsePrimitive
Lnet/minecraft/nbt/StringNbtReader;parsePrimitive(Ljava/lang/String;)Lnet/minecraft/nbt/Tag;
-
parseTag
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official d
Lnj;d()Lni;
intermediary method_10723
Lnet/minecraft/class_2522;method_10723()Lnet/minecraft/class_2520;
named parseTag
Lnet/minecraft/nbt/StringNbtReader;parseTag()Lnet/minecraft/nbt/Tag;
-
parseTagArray
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official e
Lnj;e()Lni;
intermediary method_10717
Lnet/minecraft/class_2522;method_10717()Lnet/minecraft/class_2520;
named parseTagArray
Lnet/minecraft/nbt/StringNbtReader;parseTagArray()Lnet/minecraft/nbt/Tag;
-
parseCompoundTag
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official f
Lnj;f()Lmq;
intermediary method_10727
Lnet/minecraft/class_2522;method_10727()Lnet/minecraft/class_2487;
named parseCompoundTag
Lnet/minecraft/nbt/StringNbtReader;parseCompoundTag()Lnet/minecraft/nbt/CompoundTag;
-
parseListTag
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official g
Lnj;g()Lni;
intermediary method_10729
Lnet/minecraft/class_2522;method_10729()Lnet/minecraft/class_2520;
named parseListTag
Lnet/minecraft/nbt/StringNbtReader;parseListTag()Lnet/minecraft/nbt/Tag;
-
parseTagPrimitiveArray
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official h
Lnj;h()Lni;
intermediary method_10726
Lnet/minecraft/class_2522;method_10726()Lnet/minecraft/class_2520;
named parseTagPrimitiveArray
Lnet/minecraft/nbt/StringNbtReader;parseTagPrimitiveArray()Lnet/minecraft/nbt/Tag;
-
readArray
private <T extends Number> List<T> readArray(TagReader<?> arrayTypeReader, TagReader<?> typeReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lnj;a(Lnk;Lnk;)Ljava/util/List;
intermediary method_10728
Lnet/minecraft/class_2522;method_10728(Lnet/minecraft/class_4614;Lnet/minecraft/class_4614;)Ljava/util/List;
named readArray
Lnet/minecraft/nbt/StringNbtReader;readArray(Lnet/minecraft/nbt/TagReader;Lnet/minecraft/nbt/TagReader;)Ljava/util/List;
-
readComma
private boolean readComma()- Mappings:
Namespace Name Mixin selector official i
Lnj;i()Z
intermediary method_10716
Lnet/minecraft/class_2522;method_10716()Z
named readComma
Lnet/minecraft/nbt/StringNbtReader;readComma()Z
-
expect
private void expect(char char2) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lnj;a(C)V
intermediary method_10719
Lnet/minecraft/class_2522;method_10719(C)V
named expect
Lnet/minecraft/nbt/StringNbtReader;expect(C)V
-