Uses of Interface
net.minecraft.commands.functions.CommandFunction
Packages that use CommandFunction
Package
Description
-
Uses of CommandFunction in net.minecraft.commands
Fields in net.minecraft.commands with type parameters of type CommandFunctionModifier and TypeFieldDescriptionprivate Optional
<CommandFunction<CommandSourceStack>> CacheableFunction.function
Methods in net.minecraft.commands that return types with arguments of type CommandFunction -
Uses of CommandFunction in net.minecraft.commands.arguments.item
Methods in net.minecraft.commands.arguments.item that return CommandFunctionModifier and TypeMethodDescription(package private) static CommandFunction
<CommandSourceStack> FunctionArgument.getFunction
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, ResourceLocation id) Methods in net.minecraft.commands.arguments.item that return types with arguments of type CommandFunctionModifier and TypeMethodDescriptionFunctionArgument.Result.create
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) static com.mojang.datafixers.util.Pair
<ResourceLocation, Collection<CommandFunction<CommandSourceStack>>> FunctionArgument.getFunctionCollection
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) static com.mojang.datafixers.util.Pair
<ResourceLocation, com.mojang.datafixers.util.Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> FunctionArgument.getFunctionOrTag
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) static com.mojang.datafixers.util.Pair
<ResourceLocation, com.mojang.datafixers.util.Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> FunctionArgument.getFunctionOrTag
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) static Collection
<CommandFunction<CommandSourceStack>> FunctionArgument.getFunctions
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) (package private) static Collection
<CommandFunction<CommandSourceStack>> FunctionArgument.getFunctionTag
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, ResourceLocation id) com.mojang.datafixers.util.Pair
<ResourceLocation, com.mojang.datafixers.util.Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> FunctionArgument.Result.unwrap
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) com.mojang.datafixers.util.Pair
<ResourceLocation, com.mojang.datafixers.util.Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> FunctionArgument.Result.unwrap
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) com.mojang.datafixers.util.Pair
<ResourceLocation, Collection<CommandFunction<CommandSourceStack>>> FunctionArgument.Result.unwrapToCollection
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) -
Uses of CommandFunction in net.minecraft.commands.functions
Classes in net.minecraft.commands.functions that implement CommandFunctionModifier and TypeClassDescriptionclass
MacroFunction<T extends ExecutionCommandSource<T>>
final record
Methods in net.minecraft.commands.functions that return CommandFunctionModifier and TypeMethodDescriptionFunctionBuilder.build
(ResourceLocation id) static <T extends ExecutionCommandSource<T>>
CommandFunction<T> CommandFunction.fromLines
(ResourceLocation id, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T source, List<String> lines) -
Uses of CommandFunction in net.minecraft.server
Fields in net.minecraft.server with type parameters of type CommandFunctionModifier and TypeFieldDescriptionprivate Map
<ResourceLocation, CommandFunction<CommandSourceStack>> ServerFunctionLibrary.functions
ServerFunctionLibrary.tags
private final TagLoader
<CommandFunction<CommandSourceStack>> ServerFunctionLibrary.tagsLoader
private List
<CommandFunction<CommandSourceStack>> ServerFunctionManager.ticking
static final ResourceKey
<Registry<CommandFunction<CommandSourceStack>>> ServerFunctionLibrary.TYPE_KEY
Methods in net.minecraft.server that return types with arguments of type CommandFunctionModifier and TypeMethodDescriptionServerFunctionManager.get
(ResourceLocation functionIdentifier) ServerFunctionLibrary.getFunction
(ResourceLocation location) ServerFunctionLibrary.getFunctions()
ServerFunctionLibrary.getTag
(ResourceLocation location) ServerFunctionManager.getTag
(ResourceLocation functionTagIdentifier) Methods in net.minecraft.server with parameters of type CommandFunctionModifier and TypeMethodDescriptionvoid
ServerFunctionManager.execute
(CommandFunction<CommandSourceStack> function, CommandSourceStack source) Method parameters in net.minecraft.server with type arguments of type CommandFunctionModifier and TypeMethodDescriptionprivate void
ServerFunctionManager.executeTagFunctions
(Collection<CommandFunction<CommandSourceStack>> functionObjects, ResourceLocation identifier) -
Uses of CommandFunction in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type CommandFunctionModifier and TypeMethodDescriptionprivate static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.instantiateAndQueueFunctions
(CompoundTag arguments, ExecutionControl<T> executionControl, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T source, CommandFunction<T> function, ResourceLocation functionId, CommandResultCallback resultCallback, boolean returnParentFrame) Method parameters in net.minecraft.server.commands with type arguments of type CommandFunctionModifier and TypeMethodDescriptionstatic <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctions
(Collection<CommandFunction<T>> functions, CompoundTag arguments, T originalSource, T source, ExecutionControl<T> executionControl, FunctionCommand.Callbacks<T> callbacks, ChainModifiers chainModifiers) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsAsReturn
(Collection<CommandFunction<T>> functions, CompoundTag arguments, T originalSource, T source, ExecutionControl<T> exectutionControl, FunctionCommand.Callbacks<T> callbacks) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsNoReturn
(Collection<CommandFunction<T>> functions, CompoundTag arguments, T originalSource, T source, ExecutionControl<T> executionControl, FunctionCommand.Callbacks<T> callbacks) private static int
ScheduleCommand.schedule
(CommandSourceStack source, com.mojang.datafixers.util.Pair<ResourceLocation, com.mojang.datafixers.util.Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> function, int time, boolean append) private static int
ScheduleCommand.schedule
(CommandSourceStack source, com.mojang.datafixers.util.Pair<ResourceLocation, com.mojang.datafixers.util.Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> function, int time, boolean append) static <T extends ExecutionCommandSource<T>>
voidExecuteCommand.scheduleFunctionConditionsAndTest
(T originalSource, List<T> sources, Function<T, T> sourceModifier, IntPredicate successCheck, com.mojang.brigadier.context.ContextChain<T> contextChain, CompoundTag arguments, ExecutionControl<T> executionControl, ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>> functions, ChainModifiers chainModifiers)