public class JsonToNBT
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
BYTE_PATTERN |
private static java.util.regex.Pattern |
DOUBLE_PATTERN |
private static java.util.regex.Pattern |
DOUBLE_PATTERN_NOSUFFIX |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ERROR_EXPECTED_KEY |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ERROR_EXPECTED_VALUE |
static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
ERROR_INSERT_MIXED_ARRAY |
static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType |
ERROR_INSERT_MIXED_LIST |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ERROR_INVALID_ARRAY |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ERROR_TRAILING_DATA |
private static java.util.regex.Pattern |
FLOAT_PATTERN |
private static java.util.regex.Pattern |
INT_PATTERN |
private static java.util.regex.Pattern |
LONG_PATTERN |
private com.mojang.brigadier.StringReader |
reader |
private static java.util.regex.Pattern |
SHORT_PATTERN |
Constructor and Description |
---|
JsonToNBT(com.mojang.brigadier.StringReader readerIn) |
Modifier and Type | Method and Description |
---|---|
private void |
expect(char expected) |
private <T extends java.lang.Number> |
func_229706_a_(INBTType<?> p_229706_1_,
INBTType<?> p_229706_2_) |
static CompoundNBT |
getTagFromJson(java.lang.String jsonString) |
private boolean |
hasElementSeparator() |
private INBT |
readArrayTag() |
protected java.lang.String |
readKey() |
protected INBT |
readList() |
private INBT |
readListTag() |
(package private) CompoundNBT |
readSingleStruct() |
CompoundNBT |
readStruct() |
protected INBT |
readTypedValue() |
INBT |
readValue() |
private INBT |
type(java.lang.String stringIn) |
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TRAILING_DATA
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_KEY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_VALUE
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_INSERT_MIXED_LIST
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_INSERT_MIXED_ARRAY
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_ARRAY
private static final java.util.regex.Pattern DOUBLE_PATTERN_NOSUFFIX
private static final java.util.regex.Pattern DOUBLE_PATTERN
private static final java.util.regex.Pattern FLOAT_PATTERN
private static final java.util.regex.Pattern BYTE_PATTERN
private static final java.util.regex.Pattern LONG_PATTERN
private static final java.util.regex.Pattern SHORT_PATTERN
private static final java.util.regex.Pattern INT_PATTERN
private final com.mojang.brigadier.StringReader reader
public static CompoundNBT getTagFromJson(java.lang.String jsonString) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
CompoundNBT readSingleStruct() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
protected java.lang.String readKey() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
protected INBT readTypedValue() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private INBT type(java.lang.String stringIn)
public INBT readValue() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
protected INBT readList() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public CompoundNBT readStruct() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private INBT readListTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private INBT readArrayTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private <T extends java.lang.Number> java.util.List<T> func_229706_a_(INBTType<?> p_229706_1_, INBTType<?> p_229706_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private boolean hasElementSeparator()
private void expect(char expected) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException