Uses of Interface
net.minecraft.server.function.CommandFunction
Package
Description
-
Uses of CommandFunction in net.minecraft.command.argument
Modifier and TypeMethodDescription(package private) static CommandFunction<ServerCommandSource>
CommandFunctionArgumentType.getFunction
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) Modifier 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
Modifier 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) Modifier 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 int
ScheduleCommand.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 int
ScheduleCommand.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
Modifier and TypeClassDescriptionfinal record
class
Macro<T extends AbstractServerCommandSource<T>>
Modifier and TypeFieldDescriptionprivate Optional<CommandFunction<ServerCommandSource>>
LazyContainer.function
private Map<Identifier,
CommandFunction<ServerCommandSource>> FunctionLoader.functions
private final TagGroupLoader<CommandFunction<ServerCommandSource>>
FunctionLoader.tagLoader
private Map<Identifier,
Collection<CommandFunction<ServerCommandSource>>> FunctionLoader.tags
private List<CommandFunction<ServerCommandSource>>
CommandFunctionManager.tickFunctions
A list ofminecraft:tick
tag functions to run on every tick.Modifier 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) Modifier and TypeMethodDescriptionFunctionLoader.get
(Identifier id) LazyContainer.get
(CommandFunctionManager commandFunctionManager) CommandFunctionManager.getFunction
(Identifier id) FunctionLoader.getFunctions()
CommandFunctionManager.getTag
(Identifier id) FunctionLoader.getTagOrEmpty
(Identifier id) Modifier and TypeMethodDescriptionvoid
CommandFunctionManager.execute
(CommandFunction<ServerCommandSource> function, ServerCommandSource source) Executes a function.Modifier and TypeMethodDescriptionprivate void
CommandFunctionManager.executeAll
(Collection<CommandFunction<ServerCommandSource>> functions, Identifier label)