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> pContext, ResourceLocation pId) 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> pContext) static com.mojang.datafixers.util.Pair
<ResourceLocation, Collection<CommandFunction<CommandSourceStack>>> FunctionArgument.getFunctionCollection
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) 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> pContext, String pName) 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> pContext, String pName) static Collection
<CommandFunction<CommandSourceStack>> FunctionArgument.getFunctions
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) (package private) static Collection
<CommandFunction<CommandSourceStack>> FunctionArgument.getFunctionTag
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, ResourceLocation pId) 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> pContext) 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> pContext) com.mojang.datafixers.util.Pair
<ResourceLocation, Collection<CommandFunction<CommandSourceStack>>> FunctionArgument.Result.unwrapToCollection
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext) -
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 pId, com.mojang.brigadier.CommandDispatcher<T> pDispatcher, T pSource, List<String> pLines) -
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 pFunctionIdentifier) ServerFunctionLibrary.getFunction
(ResourceLocation p_136090_) ServerFunctionLibrary.getFunctions()
ServerFunctionLibrary.getTag
(ResourceLocation pLocation) ServerFunctionManager.getTag
(ResourceLocation pFunctionTagIdentifier) 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 pArguments, ExecutionControl<T> pExecutionControl, com.mojang.brigadier.CommandDispatcher<T> pDispatcher, T pSource, CommandFunction<T> pFunction, ResourceLocation pFunctionId, CommandResultCallback pResultCallback, boolean pReturnParentFrame) 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> pExectutionControl, 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 pSource, com.mojang.datafixers.util.Pair<ResourceLocation, com.mojang.datafixers.util.Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> pFunction, int pTime, boolean pAppend) private static int
ScheduleCommand.schedule
(CommandSourceStack pSource, com.mojang.datafixers.util.Pair<ResourceLocation, com.mojang.datafixers.util.Either<CommandFunction<CommandSourceStack>, Collection<CommandFunction<CommandSourceStack>>>> pFunction, int pTime, boolean pAppend) static <T extends ExecutionCommandSource<T>>
voidExecuteCommand.scheduleFunctionConditionsAndTest
(T pOriginalSource, List<T> pSources, Function<T, T> pSourceModifier, IntPredicate pSuccessCheck, com.mojang.brigadier.context.ContextChain<T> pContextChain, CompoundTag pArguments, ExecutionControl<T> pExecutionControl, ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>> pFunctions, ChainModifiers pChainModifiers)