类 Commands
java.lang.Object
net.minecraft.commands.Commands
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
static final int
static final int
static final int
static final int
static final int
private static final org.slf4j.Logger
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSourceStack,
T> static CommandBuildContext
createValidationContext
(HolderLookup.Provider pProvider) createValidator
(Commands.ParseFunction pParser) private void
fillUsableCommands
(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> pRootCommandSource, com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider> pRootSuggestion, CommandSourceStack pSource, Map<com.mojang.brigadier.tree.CommandNode<CommandSourceStack>, com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> pCommandNodeToSuggestionNode) com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
static <S> com.mojang.brigadier.exceptions.CommandSyntaxException
getParseException
(com.mojang.brigadier.ParseResults<S> pResult) static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
static <S> com.mojang.brigadier.ParseResults<S>
mapSource
(com.mojang.brigadier.ParseResults<S> pParseResults, UnaryOperator<S> p_242890_) int
performCommand
(com.mojang.brigadier.ParseResults<CommandSourceStack> pParseResults, String pCommand) int
performPrefixedCommand
(CommandSourceStack pSource, String pCommand) void
sendCommands
(ServerPlayer pPlayer) static void
validate()
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
LEVEL_ALL
public static final int LEVEL_ALL- 另请参阅:
-
LEVEL_MODERATORS
public static final int LEVEL_MODERATORS- 另请参阅:
-
LEVEL_GAMEMASTERS
public static final int LEVEL_GAMEMASTERS- 另请参阅:
-
LEVEL_ADMINS
public static final int LEVEL_ADMINS- 另请参阅:
-
LEVEL_OWNERS
public static final int LEVEL_OWNERS- 另请参阅:
-
dispatcher
-
-
构造器详细资料
-
Commands
-
-
方法详细资料
-
mapSource
public static <S> com.mojang.brigadier.ParseResults<S> mapSource(com.mojang.brigadier.ParseResults<S> pParseResults, UnaryOperator<S> p_242890_) -
performPrefixedCommand
-
performCommand
public int performCommand(com.mojang.brigadier.ParseResults<CommandSourceStack> pParseResults, String pCommand) -
sendCommands
-
fillUsableCommands
private void fillUsableCommands(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> pRootCommandSource, com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider> pRootSuggestion, CommandSourceStack pSource, Map<com.mojang.brigadier.tree.CommandNode<CommandSourceStack>, com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> pCommandNodeToSuggestionNode) -
literal
public static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> literal(String pName) -
argument
public static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSourceStack,T> argument(String pName, com.mojang.brigadier.arguments.ArgumentType<T> pType) -
createValidator
-
getDispatcher
-
getParseException
@Nullable public static <S> com.mojang.brigadier.exceptions.CommandSyntaxException getParseException(com.mojang.brigadier.ParseResults<S> pResult) -
createValidationContext
-
validate
public static void validate()
-