Package net.minecraft.nbt
Class JsonToNBT
java.lang.Object
net.minecraft.nbt.JsonToNBT
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Pattern
private static final Pattern
private static final Pattern
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final Pattern
private static final Pattern
private static final Pattern
private final com.mojang.brigadier.StringReader
private static final Pattern
-
Constructor Summary
-
Method Summary
-
Field Details
-
ERROR_TRAILING_DATA
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TRAILING_DATA -
ERROR_EXPECTED_KEY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_KEY -
ERROR_EXPECTED_VALUE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_VALUE -
ERROR_INSERT_MIXED_LIST
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_INSERT_MIXED_LIST -
ERROR_INSERT_MIXED_ARRAY
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_INSERT_MIXED_ARRAY -
ERROR_INVALID_ARRAY
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_ARRAY -
DOUBLE_PATTERN_NOSUFFIX
-
DOUBLE_PATTERN
-
FLOAT_PATTERN
-
BYTE_PATTERN
-
LONG_PATTERN
-
SHORT_PATTERN
-
INT_PATTERN
-
reader
private final com.mojang.brigadier.StringReader reader
-
-
Constructor Details
-
JsonToNBT
public JsonToNBT(com.mojang.brigadier.StringReader p_i47948_1_)
-
-
Method Details
-
parseTag
public static CompoundNBT parseTag(String p_180713_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readSingleStruct
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readKey
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readTypedValue
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
type
-
readValue
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readList
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readStruct
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readListTag
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readArrayTag
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readArray
private <T extends Number> List<T> readArray(INBTType<?> p_229706_1_, INBTType<?> p_229706_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
hasElementSeparator
private boolean hasElementSeparator() -
expect
private void expect(char p_193604_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-