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) -
Uses of CommandFunction in net.minecraft.server.command
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 source, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer) static <T extends AbstractServerCommandSource<T>>
voidExecuteCommand.enqueueExecutions
(List<T> sources, Function<T, T> sourceTransformer, IntPredicate resultPredicate, com.mojang.brigadier.context.ContextChain<T> contextChain, @Nullable NbtCompound arguments, ExecutionControl<T> control, ExecuteCommand.FunctionNamesGetter<T, Collection<CommandFunction<T>>> functionNamesGetter, boolean silent) 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
Classes in net.minecraft.server.function that implement CommandFunctionModifier and TypeClassDescriptionfinal record
class
Macro<T extends AbstractServerCommandSource<T>>
Fields in net.minecraft.server.function with type parameters of type CommandFunctionModifier 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.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 manager) 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 TypeMethodDescriptionvoid
CommandFunctionManager.execute
(CommandFunction<ServerCommandSource> function, ServerCommandSource source) Executes a function.Method parameters in net.minecraft.server.function with type arguments of type CommandFunctionModifier and TypeMethodDescriptionprivate void
CommandFunctionManager.executeAll
(Collection<CommandFunction<ServerCommandSource>> functions, Identifier label)