Interface CommandFunction<T>

All Known Implementing Classes:
class_8872, Macro

public interface CommandFunction<T>
Mappings:
Namespace Name
official gx
intermediary net/minecraft/class_2158
named net/minecraft/server/function/CommandFunction
  • Method Details

    • getId

      Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lgx;a()Lafw;
      intermediary comp_1994 Lnet/minecraft/class_2158;comp_1994()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/server/function/CommandFunction;getId()Lnet/minecraft/util/Identifier;
    • withMacroReplaced

      class_8868<T> withMacroReplaced(@Nullable @Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T t) throws MacroException
      Throws:
      MacroException
      Mappings:
      Namespace Name Mixin selector
      official a Lgx;a(Lrt;Lcom/mojang/brigadier/CommandDispatcher;Ljava/lang/Object;)Lgz;
      intermediary method_52595 Lnet/minecraft/class_2158;method_52595(Lnet/minecraft/class_2487;Lcom/mojang/brigadier/CommandDispatcher;Ljava/lang/Object;)Lnet/minecraft/class_8868;
      named withMacroReplaced Lnet/minecraft/server/function/CommandFunction;withMacroReplaced(Lnet/minecraft/nbt/NbtCompound;Lcom/mojang/brigadier/CommandDispatcher;Ljava/lang/Object;)Lnet/minecraft/class_8868;
    • continuesToNextLine

      private static boolean continuesToNextLine(CharSequence string)
      Mappings:
      Namespace Name Mixin selector
      official a Lgx;a(Ljava/lang/CharSequence;)Z
      intermediary method_52592 Lnet/minecraft/class_2158;method_52592(Ljava/lang/CharSequence;)Z
      named continuesToNextLine Lnet/minecraft/server/function/CommandFunction;continuesToNextLine(Ljava/lang/CharSequence;)Z
    • create

      static <T extends class_8839<T>> CommandFunction<T> create(Identifier id, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T t, 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.

      Parameters:
      lines - the raw lines (including comments) read from a function file
      Mappings:
      Namespace Name Mixin selector
      official a Lgx;a(Lafw;Lcom/mojang/brigadier/CommandDispatcher;Ldw;Ljava/util/List;)Lgx;
      intermediary method_9195 Lnet/minecraft/class_2158;method_9195(Lnet/minecraft/class_2960;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;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/class_8839;Ljava/util/List;)Lnet/minecraft/server/function/CommandFunction;
    • method_54417

      static <T extends class_8839<T>> class_8856<T> method_54417(com.mojang.brigadier.CommandDispatcher<T> commandDispatcher, T t, com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lgx;a(Lcom/mojang/brigadier/CommandDispatcher;Ldw;Lcom/mojang/brigadier/StringReader;)Lgq;
      intermediary method_54417 Lnet/minecraft/class_2158;method_54417(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_8856;
      named method_54417 Lnet/minecraft/server/function/CommandFunction;method_54417(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_8839;Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_8856;