类 CommandFunction


  • public class CommandFunction
    extends Object
    Mappings:
    Namespace Name
    official dd
    intermediary net/minecraft/class_2158
    named net/minecraft/server/function/CommandFunction
    • 字段详细资料

      • elements

        private final CommandFunction.Element[] elements
        Mappings:
        Namespace Name Mixin selector
        official a Ldd;a:[Ldd$c;
        intermediary field_9805 Lnet/minecraft/class_2158;field_9805:[Lnet/minecraft/class_2158$class_2161;
        named elements Lnet/minecraft/server/function/CommandFunction;elements:[Lnet/minecraft/server/function/CommandFunction$Element;
      • id

        private final Identifier id
        Mappings:
        Namespace Name Mixin selector
        official b Ldd;b:Lwp;
        intermediary field_9806 Lnet/minecraft/class_2158;field_9806:Lnet/minecraft/class_2960;
        named id Lnet/minecraft/server/function/CommandFunction;id:Lnet/minecraft/util/Identifier;
    • 构造器详细资料

      • CommandFunction

        public CommandFunction​(Identifier id,
                               CommandFunction.Element[] elements)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldd;<init>(Lwp;[Ldd$c;)V
        intermediary <init> Lnet/minecraft/class_2158;<init>(Lnet/minecraft/class_2960;[Lnet/minecraft/class_2158$class_2161;)V
        named <init> Lnet/minecraft/server/function/CommandFunction;<init>(Lnet/minecraft/util/Identifier;[Lnet/minecraft/server/function/CommandFunction$Element;)V
    • 方法详细资料

      • getId

        public Identifier getId()
        Mappings:
        Namespace Name Mixin selector
        official a Ldd;a()Lwp;
        intermediary method_9194 Lnet/minecraft/class_2158;method_9194()Lnet/minecraft/class_2960;
        named getId Lnet/minecraft/server/function/CommandFunction;getId()Lnet/minecraft/util/Identifier;
      • getElements

        public CommandFunction.Element[] getElements()
        Mappings:
        Namespace Name Mixin selector
        official b Ldd;b()[Ldd$c;
        intermediary method_9193 Lnet/minecraft/class_2158;method_9193()[Lnet/minecraft/class_2158$class_2161;
        named getElements Lnet/minecraft/server/function/CommandFunction;getElements()[Lnet/minecraft/server/function/CommandFunction$Element;
      • create

        public static CommandFunction create​(Identifier id,
                                             com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher,
                                             ServerCommandSource source,
                                             List<String> lines)
        Parses a function in the context of source.

        Any syntax errors, such as improper comment lines or unknown commands, will be thrown at this point.

        参数:
        lines - the raw lines (including comments) read from a function file
        Mappings:
        Namespace Name Mixin selector
        official a Ldd;a(Lwp;Lcom/mojang/brigadier/CommandDispatcher;Ldg;Ljava/util/List;)Ldd;
        intermediary method_9195 Lnet/minecraft/class_2158;method_9195(Lnet/minecraft/class_2960;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_2168;Ljava/util/List;)Lnet/minecraft/class_2158;
        named create Lnet/minecraft/server/function/CommandFunction;create(Lnet/minecraft/util/Identifier;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/List;)Lnet/minecraft/server/function/CommandFunction;