Package net.minecraft.server.function
Class CommandFunctionManager
java.lang.Object
net.minecraft.server.function.CommandFunctionManager
- Mappings:
Namespace Name official xdintermediary net/minecraft/class_2991named net/minecraft/server/function/CommandFunctionManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classstatic classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Identifierprivate FunctionLoaderprivate booleanprivate static Text(package private) MinecraftServerprivate static Identifierprivate List<CommandFunction> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintexecute(CommandFunction function, ServerCommandSource source)intexecute(CommandFunction function, ServerCommandSource source, @Nullable CommandFunctionManager.Tracer tracer)private voidexecuteAll(Collection<CommandFunction> functions, Identifier label)com.mojang.brigadier.CommandDispatcher<ServerCommandSource>getFunction(Identifier id)intgetTaggedFunctions(Identifier tag)private voidinitialize(FunctionLoader loader)voidtick()voidupdate(FunctionLoader loader)Called to update the loaded functions on datapack reload.
-
Field Details
-
NO_RECURSION_TEXT
- Mappings:
Namespace Name Mixin selector official aLxd;a:Lon;intermediary field_33542Lnet/minecraft/class_2991;field_33542:Lnet/minecraft/class_2561;named NO_RECURSION_TEXTLnet/minecraft/server/function/CommandFunctionManager;NO_RECURSION_TEXT:Lnet/minecraft/text/Text;
-
TICK_FUNCTION
- Mappings:
Namespace Name Mixin selector official bLxd;b:Lwr;intermediary field_13417Lnet/minecraft/class_2991;field_13417:Lnet/minecraft/class_2960;named TICK_FUNCTIONLnet/minecraft/server/function/CommandFunctionManager;TICK_FUNCTION:Lnet/minecraft/util/Identifier;
-
LOAD_FUNCTION
- Mappings:
Namespace Name Mixin selector official cLxd;c:Lwr;intermediary field_13412Lnet/minecraft/class_2991;field_13412:Lnet/minecraft/class_2960;named LOAD_FUNCTIONLnet/minecraft/server/function/CommandFunctionManager;LOAD_FUNCTION:Lnet/minecraft/util/Identifier;
-
server
- Mappings:
Namespace Name Mixin selector official dLxd;d:Lnet/minecraft/server/MinecraftServer;intermediary field_13419Lnet/minecraft/class_2991;field_13419:Lnet/minecraft/server/MinecraftServer;named serverLnet/minecraft/server/function/CommandFunctionManager;server:Lnet/minecraft/server/MinecraftServer;
-
field_33543
- Mappings:
Namespace Name Mixin selector official eLxd;e:Lxd$a;intermediary field_33543Lnet/minecraft/class_2991;field_33543:Lnet/minecraft/class_2991$class_6345;named field_33543Lnet/minecraft/server/function/CommandFunctionManager;field_33543:Lnet/minecraft/server/function/CommandFunctionManager$class_6345;
-
tickFunctions
- Mappings:
Namespace Name Mixin selector official fLxd;f:Ljava/util/List;intermediary field_13418Lnet/minecraft/class_2991;field_13418:Ljava/util/List;named tickFunctionsLnet/minecraft/server/function/CommandFunctionManager;tickFunctions:Ljava/util/List;
-
needToRunLoadFunctions
private boolean needToRunLoadFunctions- Mappings:
Namespace Name Mixin selector official gLxd;g:Zintermediary field_13422Lnet/minecraft/class_2991;field_13422:Znamed needToRunLoadFunctionsLnet/minecraft/server/function/CommandFunctionManager;needToRunLoadFunctions:Z
-
loader
- Mappings:
Namespace Name Mixin selector official hLxd;h:Lxc;intermediary field_25333Lnet/minecraft/class_2991;field_25333:Lnet/minecraft/class_5349;named loaderLnet/minecraft/server/function/CommandFunctionManager;loader:Lnet/minecraft/server/function/FunctionLoader;
-
-
Constructor Details
-
CommandFunctionManager
- Mappings:
Namespace Name Mixin selector official <init>Lxd;<init>(Lnet/minecraft/server/MinecraftServer;Lxc;)Vintermediary <init>Lnet/minecraft/class_2991;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_5349;)Vnamed <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 aLxd;a()Iintermediary method_12902Lnet/minecraft/class_2991;method_12902()Inamed getMaxCommandChainLengthLnet/minecraft/server/function/CommandFunctionManager;getMaxCommandChainLength()I
-
getDispatcher
- Mappings:
Namespace Name Mixin selector official bLxd;b()Lcom/mojang/brigadier/CommandDispatcher;intermediary method_12900Lnet/minecraft/class_2991;method_12900()Lcom/mojang/brigadier/CommandDispatcher;named getDispatcherLnet/minecraft/server/function/CommandFunctionManager;getDispatcher()Lcom/mojang/brigadier/CommandDispatcher;
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official cLxd;c()Vintermediary method_18699Lnet/minecraft/class_2991;method_18699()Vnamed tickLnet/minecraft/server/function/CommandFunctionManager;tick()V
-
executeAll
- Mappings:
Namespace Name Mixin selector official aLxd;a(Ljava/util/Collection;Lwr;)Vintermediary method_29460Lnet/minecraft/class_2991;method_29460(Ljava/util/Collection;Lnet/minecraft/class_2960;)Vnamed executeAllLnet/minecraft/server/function/CommandFunctionManager;executeAll(Ljava/util/Collection;Lnet/minecraft/util/Identifier;)V
-
execute
- Mappings:
Namespace Name Mixin selector official aLxd;a(Ldd;Ldg;)Iintermediary method_12904Lnet/minecraft/class_2991;method_12904(Lnet/minecraft/class_2158;Lnet/minecraft/class_2168;)Inamed executeLnet/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 aLxd;a(Ldd;Ldg;Lxd$c;)Iintermediary method_36341Lnet/minecraft/class_2991;method_36341(Lnet/minecraft/class_2158;Lnet/minecraft/class_2168;Lnet/minecraft/class_2991$class_6346;)Inamed executeLnet/minecraft/server/function/CommandFunctionManager;execute(Lnet/minecraft/server/function/CommandFunction;Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/function/CommandFunctionManager$Tracer;)I
-
update
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 aLxd;a(Lxc;)Vintermediary method_29461Lnet/minecraft/class_2991;method_29461(Lnet/minecraft/class_5349;)Vnamed updateLnet/minecraft/server/function/CommandFunctionManager;update(Lnet/minecraft/server/function/FunctionLoader;)V
-
initialize
- Mappings:
Namespace Name Mixin selector official bLxd;b(Lxc;)Vintermediary method_29773Lnet/minecraft/class_2991;method_29773(Lnet/minecraft/class_5349;)Vnamed initializeLnet/minecraft/server/function/CommandFunctionManager;initialize(Lnet/minecraft/server/function/FunctionLoader;)V
-
getTaggedFunctionSource
- Mappings:
Namespace Name Mixin selector official dLxd;d()Ldg;intermediary method_12899Lnet/minecraft/class_2991;method_12899()Lnet/minecraft/class_2168;named getTaggedFunctionSourceLnet/minecraft/server/function/CommandFunctionManager;getTaggedFunctionSource()Lnet/minecraft/server/command/ServerCommandSource;
-
getFunction
- Mappings:
Namespace Name Mixin selector official aLxd;a(Lwr;)Ljava/util/Optional;intermediary method_12905Lnet/minecraft/class_2991;method_12905(Lnet/minecraft/class_2960;)Ljava/util/Optional;named getFunctionLnet/minecraft/server/function/CommandFunctionManager;getFunction(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
-
getTaggedFunctions
- Mappings:
Namespace Name Mixin selector official bLxd;b(Lwr;)Lafu;intermediary method_29462Lnet/minecraft/class_2991;method_29462(Lnet/minecraft/class_2960;)Lnet/minecraft/class_3494;named getTaggedFunctionsLnet/minecraft/server/function/CommandFunctionManager;getTaggedFunctions(Lnet/minecraft/util/Identifier;)Lnet/minecraft/tag/Tag;
-
getAllFunctions
- Mappings:
Namespace Name Mixin selector official eLxd;e()Ljava/lang/Iterable;intermediary method_29463Lnet/minecraft/class_2991;method_29463()Ljava/lang/Iterable;named getAllFunctionsLnet/minecraft/server/function/CommandFunctionManager;getAllFunctions()Ljava/lang/Iterable;
-
getFunctionTags
- Mappings:
Namespace Name Mixin selector official fLxd;f()Ljava/lang/Iterable;intermediary method_29464Lnet/minecraft/class_2991;method_29464()Ljava/lang/Iterable;named getFunctionTagsLnet/minecraft/server/function/CommandFunctionManager;getFunctionTags()Ljava/lang/Iterable;
-