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_311647_) static <T> T
parseJson
(HolderLookup.Provider p_330013_, com.mojang.brigadier.StringReader p_311860_, com.mojang.serialization.Codec<T> p_311403_) static String
readWhile
(com.mojang.brigadier.StringReader p_333885_, CharPredicate p_328669_)
-
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_311647_) -
parseJson
public static <T> T parseJson(HolderLookup.Provider p_330013_, com.mojang.brigadier.StringReader p_311860_, com.mojang.serialization.Codec<T> p_311403_) -
readWhile
public static String readWhile(com.mojang.brigadier.StringReader p_333885_, CharPredicate p_328669_)
-