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
Methods in net.minecraft.server.command with parameters of type CommandFunctionModifier and TypeMethodDescriptionprivate static <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.method_54860
(@Nullable NbtCompound nbtCompound, ExecutionControl<T> executionControl, com.mojang.brigadier.CommandDispatcher<T> commandDispatcher, T t, CommandFunction<T> commandFunction, Identifier identifier, class_8935 class_8935, boolean bool) 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 t, T functionSource, ExecutionControl<T> control, FunctionCommand.ResultConsumer<T> resultConsumer, class_8936 class_8936) static <T extends AbstractServerCommandSource<T>>
voidExecuteCommand.enqueueExecutions
(T t, List<T> list, Function<T, T> function, IntPredicate intPredicate, com.mojang.brigadier.context.ContextChain<T> contextChain, @Nullable NbtCompound nbtCompound, ExecutionControl<T> executionControl, ExecuteCommand.FunctionNamesGetter<T, Collection<CommandFunction<T>>> functionNamesGetter, class_8936 class_8936) 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) private static <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.method_54859
(Collection<CommandFunction<T>> collection, @Nullable NbtCompound nbtCompound, T t, T t2, ExecutionControl<T> executionControl, FunctionCommand.ResultConsumer<T> resultConsumer) private static <T extends AbstractServerCommandSource<T>>
voidFunctionCommand.method_54861
(Collection<CommandFunction<T>> collection, @Nullable NbtCompound nbtCompound, T t, T t2, ExecutionControl<T> executionControl, FunctionCommand.ResultConsumer<T> resultConsumer) -
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)