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> p_120929_, ResourceLocation p_120930_) 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> p_120955_) static com.mojang.datafixers.util.Pair
<ResourceLocation, Collection<CommandFunction<CommandSourceStack>>> FunctionArgument.getFunctionCollection
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_314719_, String p_314716_) 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> p_120921_, String p_120922_) 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> p_120921_, String p_120922_) static Collection
<CommandFunction<CommandSourceStack>> FunctionArgument.getFunctions
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120911_, String p_120912_) (package private) static Collection
<CommandFunction<CommandSourceStack>> FunctionArgument.getFunctionTag
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_235274_, ResourceLocation p_235275_) 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> p_120956_) 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> p_120956_) com.mojang.datafixers.util.Pair
<ResourceLocation, Collection<CommandFunction<CommandSourceStack>>> FunctionArgument.Result.unwrapToCollection
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_314714_) -
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 pId) static <T extends ExecutionCommandSource<T>>
CommandFunction<T> CommandFunction.fromLines
(ResourceLocation p_306082_, com.mojang.brigadier.CommandDispatcher<T> p_306046_, T p_305973_, List<String> p_306307_) -
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
private Map
<ResourceLocation, List<CommandFunction<CommandSourceStack>>> 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 pFunction) ServerFunctionLibrary.getFunction
(ResourceLocation pLocation) ServerFunctionLibrary.getFunctions()
ServerFunctionLibrary.getTag
(ResourceLocation pLocation) ServerFunctionManager.getTag
(ResourceLocation pTag) Methods in net.minecraft.server with parameters of type CommandFunctionModifier and TypeMethodDescriptionvoid
ServerFunctionManager.execute
(CommandFunction<CommandSourceStack> pFunction, CommandSourceStack pSource) Method parameters in net.minecraft.server with type arguments of type CommandFunctionModifier and TypeMethodDescriptionprivate void
ServerFunctionManager.executeTagFunctions
(Collection<CommandFunction<CommandSourceStack>> pFunctionObjects, ResourceLocation pIdentifier) -
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 p_309636_, ExecutionControl<T> p_309536_, com.mojang.brigadier.CommandDispatcher<T> p_309639_, T p_309605_, CommandFunction<T> p_309610_, ResourceLocation p_309719_, CommandResultCallback p_309544_, boolean p_309542_) Method parameters in net.minecraft.server.commands with type arguments of type CommandFunctionModifier and TypeMethodDescriptionstatic <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctions
(Collection<CommandFunction<T>> pFunctions, CompoundTag pArguments, T pOriginalSource, T pSource, ExecutionControl<T> pExecutionControl, FunctionCommand.Callbacks<T> pCallbacks, ChainModifiers pChainModifiers) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsAsReturn
(Collection<CommandFunction<T>> pFunctions, CompoundTag pArguments, T pOriginalSource, T pSource, ExecutionControl<T> pExecutionControl, FunctionCommand.Callbacks<T> pCallbacks) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsNoReturn
(Collection<CommandFunction<T>> pFunctions, CompoundTag pArguments, T pOriginalSource, T pSource, ExecutionControl<T> pExecutionControl, FunctionCommand.Callbacks<T> pCallbacks) private static int
ScheduleCommand.schedule
(CommandSourceStack p_138429_, com.mojang.datafixers.util.Pair<ResourceLocation, com.mojang.datafixers.util.Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> p_138430_, int p_138431_, boolean p_138432_) private static int
ScheduleCommand.schedule
(CommandSourceStack p_138429_, com.mojang.datafixers.util.Pair<ResourceLocation, com.mojang.datafixers.util.Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> p_138430_, int p_138431_, boolean p_138432_) static <T extends ExecutionCommandSource<T>>
voidExecuteCommand.scheduleFunctionConditionsAndTest
(T p_309624_, List<T> p_306057_, Function<T, T> p_306045_, IntPredicate p_306343_, com.mojang.brigadier.context.ContextChain<T> p_306308_, CompoundTag p_306076_, ExecutionControl<T> p_306202_, InCommandFunction<com.mojang.brigadier.context.CommandContext<T>, Collection<CommandFunction<T>>> p_397920_, ChainModifiers p_309703_)