Class FunctionArgument

    • Field Detail

      • EXAMPLES

        private static final java.util.Collection<java.lang.String> EXAMPLES
      • ERROR_UNKNOWN_TAG

        private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_TAG
      • ERROR_UNKNOWN_FUNCTION

        private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_UNKNOWN_FUNCTION
    • Constructor Detail

      • FunctionArgument

        public FunctionArgument()
    • Method Detail

      • parse

        public FunctionArgument.IResult parse​(com.mojang.brigadier.StringReader p_parse_1_)
                                       throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Specified by:
        parse in interface com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.IResult>
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getFunction

        private static FunctionObject getFunction​(com.mojang.brigadier.context.CommandContext<CommandSource> p_218108_0_,
                                                  ResourceLocation p_218108_1_)
                                           throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getFunctionTag

        private static ITag<FunctionObject> getFunctionTag​(com.mojang.brigadier.context.CommandContext<CommandSource> p_218111_0_,
                                                           ResourceLocation p_218111_1_)
                                                    throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getFunctions

        public static java.util.Collection<FunctionObject> getFunctions​(com.mojang.brigadier.context.CommandContext<CommandSource> p_200022_0_,
                                                                        java.lang.String p_200022_1_)
                                                                 throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getFunctionOrTag

        public static com.mojang.datafixers.util.Pair<ResourceLocation,​com.mojang.datafixers.util.Either<FunctionObject,​ITag<FunctionObject>>> getFunctionOrTag​(com.mojang.brigadier.context.CommandContext<CommandSource> p_218110_0_,
                                                                                                                                                                            java.lang.String p_218110_1_)
                                                                                                                                                                     throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • getExamples

        public java.util.Collection<java.lang.String> getExamples()
        Specified by:
        getExamples in interface com.mojang.brigadier.arguments.ArgumentType<FunctionArgument.IResult>