Class Commands

java.lang.Object
net.minecraft.command.Commands

public class Commands extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • dispatcher

      private final com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher
  • Constructor Details

  • Method Details

    • performCommand

      public int performCommand(CommandSource p_197059_1_, String p_197059_2_)
    • sendCommands

      public void sendCommands(ServerPlayerEntity p_197051_1_)
    • fillUsableCommands

      private void fillUsableCommands(com.mojang.brigadier.tree.CommandNode<CommandSource> p_197052_1_, com.mojang.brigadier.tree.CommandNode<ISuggestionProvider> p_197052_2_, CommandSource p_197052_3_, Map<com.mojang.brigadier.tree.CommandNode<CommandSource>,com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>> p_197052_4_)
    • literal

      public static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> literal(String p_197057_0_)
    • argument

      public static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource,T> argument(String p_197056_0_, com.mojang.brigadier.arguments.ArgumentType<T> p_197056_1_)
    • createValidator

      public static Predicate<String> createValidator(Commands.IParser p_212590_0_)
    • getDispatcher

      public com.mojang.brigadier.CommandDispatcher<CommandSource> getDispatcher()
    • getParseException

      @Nullable public static <S> com.mojang.brigadier.exceptions.CommandSyntaxException getParseException(com.mojang.brigadier.ParseResults<S> p_227481_0_)
    • validate

      public static void validate()