Uses of Interface
net.minecraft.server.function.CommandFunction
Packages that use CommandFunction
Package
Description
-
Uses of CommandFunction in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return CommandFunctionModifier and TypeMethodDescription(package private) static CommandFunction<ServerCommandSource> CommandFunctionArgumentType.getFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) Methods in net.minecraft.command.argument that return types with arguments of type CommandFunctionModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Pair<Identifier, com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> CommandFunctionArgumentType.FunctionArgument.getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) com.mojang.datafixers.util.Pair<Identifier, com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> CommandFunctionArgumentType.FunctionArgument.getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) static com.mojang.datafixers.util.Pair<Identifier, com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> CommandFunctionArgumentType.getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static com.mojang.datafixers.util.Pair<Identifier, com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> CommandFunctionArgumentType.getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) CommandFunctionArgumentType.FunctionArgument.getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) static Collection<CommandFunction<ServerCommandSource>> CommandFunctionArgumentType.getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) (package private) static Collection<CommandFunction<ServerCommandSource>> CommandFunctionArgumentType.getFunctionTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) com.mojang.datafixers.util.Pair<Identifier, Collection<CommandFunction<ServerCommandSource>>> CommandFunctionArgumentType.FunctionArgument.getIdentifiedFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) static com.mojang.datafixers.util.Pair<Identifier, Collection<CommandFunction<ServerCommandSource>>> CommandFunctionArgumentType.getIdentifiedFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
Uses of CommandFunction in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type CommandFunctionModifier and TypeMethodDescriptionprivate static <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.enqueueFunction(@Nullable NbtCompound args, ExecutionControl<T> control, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T source, CommandFunction<T> function, Identifier id, ReturnValueConsumer returnValueConsumer, boolean propagateReturn) Method parameters in net.minecraft.server.command with type arguments of type CommandFunctionModifier and TypeMethodDescriptionstatic <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.enqueueAction(Collection<CommandFunction<T>> commandFunctions, @Nullable NbtCompound args, T parentSource, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer, ExecutionFlags flags) static <T extends AbstractServerCommandSource<T>>
voidExecuteCommand.enqueueExecutions(T baseSource, List<T> sources, Function<T, T> functionSourceGetter, IntPredicate predicate, com.mojang.brigadier.context.ContextChain<T> contextChain, @Nullable NbtCompound args, ExecutionControl<T> control, ExecuteCommand.FunctionNamesGetter<T, Collection<CommandFunction<T>>> functionNamesGetter, ExecutionFlags flags) private static <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.enqueueInReturnRun(Collection<CommandFunction<T>> functions, @Nullable NbtCompound args, T parentSource, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer) private static <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.enqueueOutsideReturnRun(Collection<CommandFunction<T>> functions, @Nullable NbtCompound args, T parentSource, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer) private static intScheduleCommand.execute(ServerCommandSource source, com.mojang.datafixers.util.Pair<Identifier, com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> function, int time, boolean replace) private static intScheduleCommand.execute(ServerCommandSource source, com.mojang.datafixers.util.Pair<Identifier, com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> function, int time, boolean replace) -
Uses of CommandFunction in net.minecraft.server.function
Classes in net.minecraft.server.function that implement CommandFunctionModifier and TypeClassDescriptionfinal recordclassMacro<T extends AbstractServerCommandSource<T>>Fields in net.minecraft.server.function with type parameters of type CommandFunctionModifier and TypeFieldDescriptionprivate Optional<CommandFunction<ServerCommandSource>> LazyContainer.functionstatic final RegistryKey<Registry<CommandFunction<ServerCommandSource>>> FunctionLoader.FUNCTION_REGISTRY_KEYprivate Map<Identifier, CommandFunction<ServerCommandSource>> FunctionLoader.functionsprivate final TagGroupLoader<CommandFunction<ServerCommandSource>> FunctionLoader.tagLoaderprivate Map<Identifier, Collection<CommandFunction<ServerCommandSource>>> FunctionLoader.tagsprivate List<CommandFunction<ServerCommandSource>> CommandFunctionManager.tickFunctionsA list ofminecraft:ticktag functions to run on every tick.Methods in net.minecraft.server.function that return CommandFunctionModifier and TypeMethodDescriptionstatic <T extends AbstractServerCommandSource<T>>
CommandFunction<T> CommandFunction.create(Identifier id, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T source, List<String> lines) Parses a function in the context ofsource.FunctionBuilder.toCommandFunction(Identifier id) Methods in net.minecraft.server.function that return types with arguments of type CommandFunctionModifier and TypeMethodDescriptionFunctionLoader.get(Identifier id) LazyContainer.get(CommandFunctionManager commandFunctionManager) CommandFunctionManager.getFunction(Identifier id) FunctionLoader.getFunctions()CommandFunctionManager.getTag(Identifier id) FunctionLoader.getTagOrEmpty(Identifier id) Methods in net.minecraft.server.function with parameters of type CommandFunctionModifier and TypeMethodDescriptionvoidCommandFunctionManager.execute(CommandFunction<ServerCommandSource> function, ServerCommandSource source) Executes a function.Method parameters in net.minecraft.server.function with type arguments of type CommandFunctionModifier and TypeMethodDescriptionprivate voidCommandFunctionManager.executeAll(Collection<CommandFunction<ServerCommandSource>> functions, Identifier label)