Package net.minecraft.server.function
Class CommandFunctionManager
java.lang.Object
net.minecraft.server.function.CommandFunctionManager
The command function manager implements execution of functions, like that from
 the 
function command.- Mappings:
 Namespace Name named net/minecraft/server/function/CommandFunctionManagerintermediary net/minecraft/class_2991official alk
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether this command function manager has just loaded and should run all functions in theminecraft:loadfunction tag.private static final Identifierprivate FunctionLoaderThe source of functions for this command function manager.private static final Loggerprivate final MinecraftServerprivate static final Identifierprivate List<CommandFunction<ServerCommandSource>> A list ofminecraft:ticktag functions to run on every tick. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(CommandFunction<ServerCommandSource> function, ServerCommandSource source) Executes a function.private voidexecuteAll(Collection<CommandFunction<ServerCommandSource>> functions, Identifier label) com.mojang.brigadier.CommandDispatcher<ServerCommandSource> Returns the command source to execute scheduled functions.getTag(Identifier id) private voidload(FunctionLoader loader) voidsetFunctions(FunctionLoader loader) Sets the functions that this command function manager will use in executions.voidtick() 
- 
Field Details
- 
LOGGER
- Mappings:
 Namespace Name Mixin selector named LOGGERLnet/minecraft/server/function/CommandFunctionManager;LOGGER:Lorg/slf4j/Logger;intermediary field_47181Lnet/minecraft/class_2991;field_47181:Lorg/slf4j/Logger;official aLalk;a:Lorg/slf4j/Logger;
 - 
TICK_TAG_ID
- Mappings:
 Namespace Name Mixin selector named TICK_TAG_IDLnet/minecraft/server/function/CommandFunctionManager;TICK_TAG_ID:Lnet/minecraft/util/Identifier;intermediary field_13417Lnet/minecraft/class_2991;field_13417:Lnet/minecraft/class_2960;official bLalk;b:Lakv;
 - 
LOAD_TAG_ID
- Mappings:
 Namespace Name Mixin selector named LOAD_TAG_IDLnet/minecraft/server/function/CommandFunctionManager;LOAD_TAG_ID:Lnet/minecraft/util/Identifier;intermediary field_13412Lnet/minecraft/class_2991;field_13412:Lnet/minecraft/class_2960;official cLalk;c:Lakv;
 - 
server
- Mappings:
 Namespace Name Mixin selector named serverLnet/minecraft/server/function/CommandFunctionManager;server:Lnet/minecraft/server/MinecraftServer;intermediary field_13419Lnet/minecraft/class_2991;field_13419:Lnet/minecraft/server/MinecraftServer;official dLalk;d:Lnet/minecraft/server/MinecraftServer;
 - 
tickFunctions
A list ofminecraft:ticktag functions to run on every tick. Set up on load, this is more efficient than polling the tag from theloaderevery tick.- Mappings:
 Namespace Name Mixin selector named tickFunctionsLnet/minecraft/server/function/CommandFunctionManager;tickFunctions:Ljava/util/List;intermediary field_13418Lnet/minecraft/class_2991;field_13418:Ljava/util/List;official eLalk;e:Ljava/util/List;
 - 
justLoaded
private boolean justLoadedWhether this command function manager has just loaded and should run all functions in theminecraft:loadfunction tag.- Mappings:
 Namespace Name Mixin selector named justLoadedLnet/minecraft/server/function/CommandFunctionManager;justLoaded:Zintermediary field_13422Lnet/minecraft/class_2991;field_13422:Zofficial fLalk;f:Z
 - 
loader
The source of functions for this command function manager.- Mappings:
 Namespace Name Mixin selector named loaderLnet/minecraft/server/function/CommandFunctionManager;loader:Lnet/minecraft/server/function/FunctionLoader;intermediary field_25333Lnet/minecraft/class_2991;field_25333:Lnet/minecraft/class_5349;official gLalk;g:Lalj;
 
 - 
 - 
Constructor Details
- 
CommandFunctionManager
- Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/server/function/CommandFunctionManager;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/server/function/FunctionLoader;)Vintermediary <init>Lnet/minecraft/class_2991;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_5349;)Vofficial <init>Lalk;<init>(Lnet/minecraft/server/MinecraftServer;Lalj;)V
 
 - 
 - 
Method Details
- 
getDispatcher
- Mappings:
 Namespace Name Mixin selector named getDispatcherLnet/minecraft/server/function/CommandFunctionManager;getDispatcher()Lcom/mojang/brigadier/CommandDispatcher;intermediary method_12900Lnet/minecraft/class_2991;method_12900()Lcom/mojang/brigadier/CommandDispatcher;official aLalk;a()Lcom/mojang/brigadier/CommandDispatcher;
 - 
tick
public void tick()- Mappings:
 Namespace Name Mixin selector named tickLnet/minecraft/server/function/CommandFunctionManager;tick()Vintermediary method_18699Lnet/minecraft/class_2991;method_18699()Vofficial bLalk;b()V
 - 
executeAll
private void executeAll(Collection<CommandFunction<ServerCommandSource>> functions, Identifier label) - Mappings:
 Namespace Name Mixin selector named executeAllLnet/minecraft/server/function/CommandFunctionManager;executeAll(Ljava/util/Collection;Lnet/minecraft/util/Identifier;)Vintermediary method_29460Lnet/minecraft/class_2991;method_29460(Ljava/util/Collection;Lnet/minecraft/class_2960;)Vofficial aLalk;a(Ljava/util/Collection;Lakv;)V
 - 
execute
Executes a function.- Parameters:
 function- the function- Mappings:
 Namespace Name Mixin selector named executeLnet/minecraft/server/function/CommandFunctionManager;execute(Lnet/minecraft/server/function/CommandFunction;Lnet/minecraft/server/command/ServerCommandSource;)Vintermediary method_12904Lnet/minecraft/class_2991;method_12904(Lnet/minecraft/class_2158;Lnet/minecraft/class_2168;)Vofficial aLalk;a(Lil;Lex;)V
 - 
setFunctions
Sets the functions that this command function manager will use in executions.- Parameters:
 loader- the new loader functions will be taken from- Mappings:
 Namespace Name Mixin selector named setFunctionsLnet/minecraft/server/function/CommandFunctionManager;setFunctions(Lnet/minecraft/server/function/FunctionLoader;)Vintermediary method_29461Lnet/minecraft/class_2991;method_29461(Lnet/minecraft/class_5349;)Vofficial aLalk;a(Lalj;)V
 - 
load
- Mappings:
 Namespace Name Mixin selector named loadLnet/minecraft/server/function/CommandFunctionManager;load(Lnet/minecraft/server/function/FunctionLoader;)Vintermediary method_29773Lnet/minecraft/class_2991;method_29773(Lnet/minecraft/class_5349;)Vofficial bLalk;b(Lalj;)V
 - 
getScheduledCommandSource
Returns the command source to execute scheduled functions. Scheduled functions are those from the/schedulecommand and those from theminecraft:ticktag.This command source has permission level 2 and is silent compared to the server's command source.
- Returns:
 - the command source to execute scheduled functions
 - Mappings:
 Namespace Name Mixin selector named getScheduledCommandSourceLnet/minecraft/server/function/CommandFunctionManager;getScheduledCommandSource()Lnet/minecraft/server/command/ServerCommandSource;intermediary method_12899Lnet/minecraft/class_2991;method_12899()Lnet/minecraft/class_2168;official cLalk;c()Lex;
 - 
getFunction
- Mappings:
 Namespace Name Mixin selector named getFunctionLnet/minecraft/server/function/CommandFunctionManager;getFunction(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;intermediary method_12905Lnet/minecraft/class_2991;method_12905(Lnet/minecraft/class_2960;)Ljava/util/Optional;official aLalk;a(Lakv;)Ljava/util/Optional;
 - 
getTag
- Mappings:
 Namespace Name Mixin selector named getTagLnet/minecraft/server/function/CommandFunctionManager;getTag(Lnet/minecraft/util/Identifier;)Ljava/util/List;intermediary method_29462Lnet/minecraft/class_2991;method_29462(Lnet/minecraft/class_2960;)Ljava/util/List;official bLalk;b(Lakv;)Ljava/util/List;
 - 
getAllFunctions
- Mappings:
 Namespace Name Mixin selector named getAllFunctionsLnet/minecraft/server/function/CommandFunctionManager;getAllFunctions()Ljava/lang/Iterable;intermediary method_29463Lnet/minecraft/class_2991;method_29463()Ljava/lang/Iterable;official dLalk;d()Ljava/lang/Iterable;
 - 
getFunctionTags
- Mappings:
 Namespace Name Mixin selector named getFunctionTagsLnet/minecraft/server/function/CommandFunctionManager;getFunctionTags()Ljava/lang/Iterable;intermediary method_29464Lnet/minecraft/class_2991;method_29464()Ljava/lang/Iterable;official eLalk;e()Ljava/lang/Iterable;
 
 -