Package net.minecraft.commands
Class ParserUtils
java.lang.Object
net.minecraft.commands.ParserUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
getPos
(com.google.gson.stream.JsonReader p_313929_) static <T> T
parseJson
(HolderLookup.Provider p_323581_, com.mojang.brigadier.StringReader p_313786_, com.mojang.serialization.Codec<T> p_313876_) static String
readWhile
(com.mojang.brigadier.StringReader p_332772_, CharPredicate p_332664_)
-
Field Details
-
JSON_READER_POS
-
JSON_READER_LINESTART
-
-
Constructor Details
-
ParserUtils
public ParserUtils()
-
-
Method Details
-
getPos
private static int getPos(com.google.gson.stream.JsonReader p_313929_) -
parseJson
public static <T> T parseJson(HolderLookup.Provider p_323581_, com.mojang.brigadier.StringReader p_313786_, com.mojang.serialization.Codec<T> p_313876_) -
readWhile
public static String readWhile(com.mojang.brigadier.StringReader p_332772_, CharPredicate p_332664_)
-