public class JsonToNBT
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
BYTE_PATTERN |
private int |
cursor |
private static java.util.regex.Pattern |
DOUBLE_PATTERN |
private static java.util.regex.Pattern |
DOUBLE_PATTERN_NOSUFFIX |
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 static java.util.regex.Pattern |
SHORT_PATTERN |
private java.lang.String |
string |
Constructor and Description |
---|
JsonToNBT(java.lang.String stringIn) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
canRead() |
private boolean |
canRead(int p_193608_1_) |
private NBTException |
exception(java.lang.String message) |
private void |
expect(char expected) |
static NBTTagCompound |
getTagFromJson(java.lang.String jsonString) |
private boolean |
hasElementSeparator() |
protected boolean |
isAllowedInKey(char charIn) |
private char |
peek() |
private char |
peek(int p_193597_1_) |
private char |
pop() |
private <T extends java.lang.Number> |
readArray(byte p_193603_1_,
byte p_193603_2_) |
private NBTBase |
readArrayTag() |
protected java.lang.String |
readKey() |
protected NBTBase |
readList() |
private NBTBase |
readListTag() |
private java.lang.String |
readQuotedString() |
(package private) NBTTagCompound |
readSingleStruct() |
private java.lang.String |
readString() |
protected NBTTagCompound |
readStruct() |
protected NBTBase |
readTypedValue() |
protected NBTBase |
readValue() |
private void |
skipWhitespace() |
private NBTBase |
type(java.lang.String stringIn) |
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 java.lang.String string
private int cursor
public static NBTTagCompound getTagFromJson(java.lang.String jsonString) throws NBTException
NBTException
NBTTagCompound readSingleStruct() throws NBTException
NBTException
protected java.lang.String readKey() throws NBTException
NBTException
private NBTException exception(java.lang.String message)
protected NBTBase readTypedValue() throws NBTException
NBTException
private NBTBase type(java.lang.String stringIn)
private java.lang.String readQuotedString() throws NBTException
NBTException
private java.lang.String readString()
protected NBTBase readValue() throws NBTException
NBTException
protected NBTBase readList() throws NBTException
NBTException
protected NBTTagCompound readStruct() throws NBTException
NBTException
private NBTBase readListTag() throws NBTException
NBTException
private NBTBase readArrayTag() throws NBTException
NBTException
private <T extends java.lang.Number> java.util.List<T> readArray(byte p_193603_1_, byte p_193603_2_) throws NBTException
NBTException
private void skipWhitespace()
private boolean hasElementSeparator()
private void expect(char expected) throws NBTException
NBTException
protected boolean isAllowedInKey(char charIn)
private boolean canRead(int p_193608_1_)
boolean canRead()
private char peek(int p_193597_1_)
private char peek()
private char pop()