类 SnbtGrammar
java.lang.Object
net.minecraft.nbt.SnbtGrammar
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static enum
(专用程序包) static enum
(专用程序包) static final record
(专用程序包) static final record
(专用程序包) static enum
(专用程序包) static final record
(专用程序包) static enum
(专用程序包) static class
(专用程序包) static enum
-
字段概要
字段修饰符和类型字段说明private static final NumberRunParseRule
private static final NumberRunParseRule
private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> (专用程序包) static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> (专用程序包) static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> (专用程序包) static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> (专用程序包) static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> private static final HexFormat
private static final NumberRunParseRule
private static final StringReaderTerms.TerminalCharacters
private static final GreedyPredicateParseRule
private static final Pattern
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) static boolean
canStartNumber
(char p_410692_) private static void
cleanAndAppend
(StringBuilder p_409818_, String p_410616_) (专用程序包) static void
cleanAndAppend
(StringBuilder p_410205_, String p_410044_, boolean p_410535_) private static <T> T
convertDouble
(com.mojang.serialization.DynamicOps<T> p_411053_, ParseState<?> p_411063_, String p_411059_) private static <T> T
convertFloat
(com.mojang.serialization.DynamicOps<T> p_411050_, ParseState<?> p_411078_, String p_411046_) private static <T> T
createFloat
(com.mojang.serialization.DynamicOps<T> p_410880_, SnbtGrammar.Sign p_409652_, String p_410345_, String p_410114_, SnbtGrammar.Signed<String> p_409756_, SnbtGrammar.TypeSuffix p_410824_, ParseState<?> p_410041_) (专用程序包) static DelayedException
<com.mojang.brigadier.exceptions.CommandSyntaxException> createNumberParseError
(NumberFormatException p_410491_) static <T> Grammar
<T> createParser
(com.mojang.serialization.DynamicOps<T> p_409979_) static String
escapeControlCharacters
(char p_410776_) private static boolean
isAllowedToStartUnquotedString
(char p_410198_) private static String
(专用程序包) static boolean
needsUnderscoreRemoval
(String p_410362_) (专用程序包) static short
parseUnsignedShort
(String p_410720_, int p_409913_)
-
字段详细资料
-
ERROR_NUMBER_PARSE_FAILURE
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NUMBER_PARSE_FAILURE -
ERROR_EXPECTED_HEX_ESCAPE
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_EXPECTED_HEX_ESCAPE -
ERROR_INVALID_CODEPOINT
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_CODEPOINT -
ERROR_NO_SUCH_OPERATION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NO_SUCH_OPERATION -
ERROR_EXPECTED_INTEGER_TYPE
static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_EXPECTED_INTEGER_TYPE -
ERROR_EXPECTED_FLOAT_TYPE
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_EXPECTED_FLOAT_TYPE -
ERROR_EXPECTED_NON_NEGATIVE_NUMBER
static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_EXPECTED_NON_NEGATIVE_NUMBER -
ERROR_INVALID_CHARACTER_NAME
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_INVALID_CHARACTER_NAME -
ERROR_INVALID_ARRAY_ELEMENT_TYPE
static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_INVALID_ARRAY_ELEMENT_TYPE -
ERROR_INVALID_UNQUOTED_START
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_INVALID_UNQUOTED_START -
ERROR_EXPECTED_UNQUOTED_STRING
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_EXPECTED_UNQUOTED_STRING -
ERROR_INVALID_STRING_CONTENTS
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_INVALID_STRING_CONTENTS -
ERROR_EXPECTED_BINARY_NUMERAL
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_EXPECTED_BINARY_NUMERAL -
ERROR_UNDESCORE_NOT_ALLOWED
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_UNDESCORE_NOT_ALLOWED -
ERROR_EXPECTED_DECIMAL_NUMERAL
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_EXPECTED_DECIMAL_NUMERAL -
ERROR_EXPECTED_HEX_NUMERAL
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_EXPECTED_HEX_NUMERAL -
ERROR_EMPTY_KEY
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_EMPTY_KEY -
ERROR_LEADING_ZERO_NOT_ALLOWED
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_LEADING_ZERO_NOT_ALLOWED -
ERROR_INFINITY_NOT_ALLOWED
private static final DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> ERROR_INFINITY_NOT_ALLOWED -
HEX_ESCAPE
-
BINARY_NUMERAL
-
DECIMAL_NUMERAL
-
HEX_NUMERAL
-
PLAIN_STRING_CHUNK
-
NUMBER_LOOKEAHEAD
-
UNICODE_NAME
-
-
构造器详细资料
-
SnbtGrammar
public SnbtGrammar()
-
-
方法详细资料
-
createNumberParseError
static DelayedException<com.mojang.brigadier.exceptions.CommandSyntaxException> createNumberParseError(NumberFormatException p_410491_) -
escapeControlCharacters
-
isAllowedToStartUnquotedString
private static boolean isAllowedToStartUnquotedString(char p_410198_) -
canStartNumber
static boolean canStartNumber(char p_410692_) -
needsUnderscoreRemoval
-
cleanAndAppend
-
cleanAndAppend
-
parseUnsignedShort
-
createFloat
@Nullable private static <T> T createFloat(com.mojang.serialization.DynamicOps<T> p_410880_, SnbtGrammar.Sign p_409652_, @Nullable String p_410345_, @Nullable String p_410114_, @Nullable SnbtGrammar.Signed<String> p_409756_, @Nullable SnbtGrammar.TypeSuffix p_410824_, ParseState<?> p_410041_) -
convertFloat
@Nullable private static <T> T convertFloat(com.mojang.serialization.DynamicOps<T> p_411050_, ParseState<?> p_411078_, String p_411046_) -
convertDouble
@Nullable private static <T> T convertDouble(com.mojang.serialization.DynamicOps<T> p_411053_, ParseState<?> p_411063_, String p_411059_) -
joinList
-
createParser
-