Class CommandFunctionManager

java.lang.Object
net.minecraft.server.function.CommandFunctionManager

public class CommandFunctionManager extends Object
Mappings:
Namespace Name
official xi
intermediary net/minecraft/class_2991
named net/minecraft/server/function/CommandFunctionManager
  • Field Details

    • NO_RECURSION_TEXT

      private static final Text NO_RECURSION_TEXT
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a:Los;
      intermediary field_33542 Lnet/minecraft/class_2991;field_33542:Lnet/minecraft/class_2561;
      named NO_RECURSION_TEXT Lnet/minecraft/server/function/CommandFunctionManager;NO_RECURSION_TEXT:Lnet/minecraft/text/Text;
    • TICK_FUNCTION

      private static final Identifier TICK_FUNCTION
      Mappings:
      Namespace Name Mixin selector
      official b Lxi;b:Lww;
      intermediary field_13417 Lnet/minecraft/class_2991;field_13417:Lnet/minecraft/class_2960;
      named TICK_FUNCTION Lnet/minecraft/server/function/CommandFunctionManager;TICK_FUNCTION:Lnet/minecraft/util/Identifier;
    • LOAD_FUNCTION

      private static final Identifier LOAD_FUNCTION
      Mappings:
      Namespace Name Mixin selector
      official c Lxi;c:Lww;
      intermediary field_13412 Lnet/minecraft/class_2991;field_13412:Lnet/minecraft/class_2960;
      named LOAD_FUNCTION Lnet/minecraft/server/function/CommandFunctionManager;LOAD_FUNCTION:Lnet/minecraft/util/Identifier;
    • server

      final MinecraftServer server
      Mappings:
      Namespace Name Mixin selector
      official d Lxi;d:Lnet/minecraft/server/MinecraftServer;
      intermediary field_13419 Lnet/minecraft/class_2991;field_13419:Lnet/minecraft/server/MinecraftServer;
      named server Lnet/minecraft/server/function/CommandFunctionManager;server:Lnet/minecraft/server/MinecraftServer;
    • field_33543

      Mappings:
      Namespace Name Mixin selector
      official e Lxi;e:Lxi$a;
      intermediary field_33543 Lnet/minecraft/class_2991;field_33543:Lnet/minecraft/class_2991$class_6345;
      named field_33543 Lnet/minecraft/server/function/CommandFunctionManager;field_33543:Lnet/minecraft/server/function/CommandFunctionManager$class_6345;
    • tickFunctions

      private final List<CommandFunction> tickFunctions
      Mappings:
      Namespace Name Mixin selector
      official f Lxi;f:Ljava/util/List;
      intermediary field_13418 Lnet/minecraft/class_2991;field_13418:Ljava/util/List;
      named tickFunctions Lnet/minecraft/server/function/CommandFunctionManager;tickFunctions:Ljava/util/List;
    • needToRunLoadFunctions

      private boolean needToRunLoadFunctions
      Mappings:
      Namespace Name Mixin selector
      official g Lxi;g:Z
      intermediary field_13422 Lnet/minecraft/class_2991;field_13422:Z
      named needToRunLoadFunctions Lnet/minecraft/server/function/CommandFunctionManager;needToRunLoadFunctions:Z
    • loader

      private FunctionLoader loader
      Mappings:
      Namespace Name Mixin selector
      official h Lxi;h:Lxh;
      intermediary field_25333 Lnet/minecraft/class_2991;field_25333:Lnet/minecraft/class_5349;
      named loader Lnet/minecraft/server/function/CommandFunctionManager;loader:Lnet/minecraft/server/function/FunctionLoader;
  • Constructor Details

    • CommandFunctionManager

      public CommandFunctionManager(MinecraftServer server, FunctionLoader loader)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lxi;<init>(Lnet/minecraft/server/MinecraftServer;Lxh;)V
      intermediary <init> Lnet/minecraft/class_2991;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_5349;)V
      named <init> Lnet/minecraft/server/function/CommandFunctionManager;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/server/function/FunctionLoader;)V
  • Method Details

    • getMaxCommandChainLength

      public int getMaxCommandChainLength()
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a()I
      intermediary method_12902 Lnet/minecraft/class_2991;method_12902()I
      named getMaxCommandChainLength Lnet/minecraft/server/function/CommandFunctionManager;getMaxCommandChainLength()I
    • getDispatcher

      public com.mojang.brigadier.CommandDispatcher<ServerCommandSource> getDispatcher()
      Mappings:
      Namespace Name Mixin selector
      official b Lxi;b()Lcom/mojang/brigadier/CommandDispatcher;
      intermediary method_12900 Lnet/minecraft/class_2991;method_12900()Lcom/mojang/brigadier/CommandDispatcher;
      named getDispatcher Lnet/minecraft/server/function/CommandFunctionManager;getDispatcher()Lcom/mojang/brigadier/CommandDispatcher;
    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      official c Lxi;c()V
      intermediary method_18699 Lnet/minecraft/class_2991;method_18699()V
      named tick Lnet/minecraft/server/function/CommandFunctionManager;tick()V
    • executeAll

      private void executeAll(Collection<CommandFunction> functions, Identifier label)
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a(Ljava/util/Collection;Lww;)V
      intermediary method_29460 Lnet/minecraft/class_2991;method_29460(Ljava/util/Collection;Lnet/minecraft/class_2960;)V
      named executeAll Lnet/minecraft/server/function/CommandFunctionManager;executeAll(Ljava/util/Collection;Lnet/minecraft/util/Identifier;)V
    • execute

      public int execute(CommandFunction function, ServerCommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a(Ldi;Ldl;)I
      intermediary method_12904 Lnet/minecraft/class_2991;method_12904(Lnet/minecraft/class_2158;Lnet/minecraft/class_2168;)I
      named execute Lnet/minecraft/server/function/CommandFunctionManager;execute(Lnet/minecraft/server/function/CommandFunction;Lnet/minecraft/server/command/ServerCommandSource;)I
    • execute

      public int execute(CommandFunction function, ServerCommandSource source, @Nullable @Nullable CommandFunctionManager.Tracer tracer)
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a(Ldi;Ldl;Lxi$c;)I
      intermediary method_36341 Lnet/minecraft/class_2991;method_36341(Lnet/minecraft/class_2158;Lnet/minecraft/class_2168;Lnet/minecraft/class_2991$class_6346;)I
      named execute Lnet/minecraft/server/function/CommandFunctionManager;execute(Lnet/minecraft/server/function/CommandFunction;Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/function/CommandFunctionManager$Tracer;)I
    • update

      public void update(FunctionLoader loader)
      Called to update the loaded functions on datapack reload.
      Parameters:
      loader - the new loader functions will be taken from
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a(Lxh;)V
      intermediary method_29461 Lnet/minecraft/class_2991;method_29461(Lnet/minecraft/class_5349;)V
      named update Lnet/minecraft/server/function/CommandFunctionManager;update(Lnet/minecraft/server/function/FunctionLoader;)V
    • initialize

      private void initialize(FunctionLoader loader)
      Mappings:
      Namespace Name Mixin selector
      official b Lxi;b(Lxh;)V
      intermediary method_29773 Lnet/minecraft/class_2991;method_29773(Lnet/minecraft/class_5349;)V
      named initialize Lnet/minecraft/server/function/CommandFunctionManager;initialize(Lnet/minecraft/server/function/FunctionLoader;)V
    • getTaggedFunctionSource

      public ServerCommandSource getTaggedFunctionSource()
      Mappings:
      Namespace Name Mixin selector
      official d Lxi;d()Ldl;
      intermediary method_12899 Lnet/minecraft/class_2991;method_12899()Lnet/minecraft/class_2168;
      named getTaggedFunctionSource Lnet/minecraft/server/function/CommandFunctionManager;getTaggedFunctionSource()Lnet/minecraft/server/command/ServerCommandSource;
    • getFunction

      public Optional<CommandFunction> getFunction(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Lxi;a(Lww;)Ljava/util/Optional;
      intermediary method_12905 Lnet/minecraft/class_2991;method_12905(Lnet/minecraft/class_2960;)Ljava/util/Optional;
      named getFunction Lnet/minecraft/server/function/CommandFunctionManager;getFunction(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
    • getTaggedFunctions

      public Tag<CommandFunction> getTaggedFunctions(Identifier tag)
      Mappings:
      Namespace Name Mixin selector
      official b Lxi;b(Lww;)Laga;
      intermediary method_29462 Lnet/minecraft/class_2991;method_29462(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3494;
      named getTaggedFunctions Lnet/minecraft/server/function/CommandFunctionManager;getTaggedFunctions(Lnet/minecraft/util/Identifier;)Lnet/minecraft/tag/Tag;
    • getAllFunctions

      public Iterable<Identifier> getAllFunctions()
      Mappings:
      Namespace Name Mixin selector
      official e Lxi;e()Ljava/lang/Iterable;
      intermediary method_29463 Lnet/minecraft/class_2991;method_29463()Ljava/lang/Iterable;
      named getAllFunctions Lnet/minecraft/server/function/CommandFunctionManager;getAllFunctions()Ljava/lang/Iterable;
    • getFunctionTags

      public Iterable<Identifier> getFunctionTags()
      Mappings:
      Namespace Name Mixin selector
      official f Lxi;f()Ljava/lang/Iterable;
      intermediary method_29464 Lnet/minecraft/class_2991;method_29464()Ljava/lang/Iterable;
      named getFunctionTags Lnet/minecraft/server/function/CommandFunctionManager;getFunctionTags()Ljava/lang/Iterable;