Class Commands


  • public class Commands
    extends java.lang.Object
    • Field Detail

      • LOGGER

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

        private final com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher
    • Method Detail

      • performCommand

        public int performCommand​(CommandSource p_197059_1_,
                                  java.lang.String p_197059_2_)
      • literal

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

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

        public static java.util.function.Predicate<java.lang.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()