Uses of Interface
net.minecraft.commands.functions.CommandFunction
Package
Description
-
Uses of CommandFunction in net.minecraft.commands
Modifier and TypeFieldDescriptionprivate Optional<CommandFunction<CommandSourceStack>>
CacheableFunction.function
-
Uses of CommandFunction in net.minecraft.commands.arguments.item
Modifier and TypeMethodDescription(package private) static CommandFunction<CommandSourceStack>
FunctionArgument.getFunction
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120929_, ResourceLocation p_120930_) Modifier 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
Modifier and TypeClassDescriptionclass
MacroFunction<T extends ExecutionCommandSource<T>>
final record
Modifier and TypeMethodDescriptionFunctionBuilder.build
(ResourceLocation p_306219_) 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
Modifier and TypeFieldDescriptionprivate Map<ResourceLocation,
CommandFunction<CommandSourceStack>> ServerFunctionLibrary.functions
ServerFunctionLibrary.tags
private final TagLoader<CommandFunction<CommandSourceStack>>
ServerFunctionLibrary.tagsLoader
private List<CommandFunction<CommandSourceStack>>
ServerFunctionManager.ticking
Modifier and TypeMethodDescriptionServerFunctionManager.get
(ResourceLocation p_136119_) ServerFunctionLibrary.getFunction
(ResourceLocation p_136090_) ServerFunctionLibrary.getFunctions()
ServerFunctionLibrary.getTag
(ResourceLocation p_214328_) ServerFunctionManager.getTag
(ResourceLocation p_214332_) Modifier and TypeMethodDescriptionvoid
ServerFunctionManager.execute
(CommandFunction<CommandSourceStack> p_305881_, CommandSourceStack p_136114_) Modifier and TypeMethodDescriptionprivate void
ServerFunctionManager.executeTagFunctions
(Collection<CommandFunction<CommandSourceStack>> p_136116_, ResourceLocation p_136117_) -
Uses of CommandFunction in net.minecraft.server.commands
Modifier 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_) Modifier and TypeMethodDescriptionstatic <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctions
(Collection<CommandFunction<T>> p_305938_, CompoundTag p_306214_, T p_306048_, T p_305876_, ExecutionControl<T> p_305902_, FunctionCommand.Callbacks<T> p_306230_, ChainModifiers p_309589_) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsAsReturn
(Collection<CommandFunction<T>> p_309534_, CompoundTag p_309696_, T p_309655_, T p_309547_, ExecutionControl<T> p_309663_, FunctionCommand.Callbacks<T> p_309585_) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsNoReturn
(Collection<CommandFunction<T>> p_309573_, CompoundTag p_309637_, T p_309693_, T p_309593_, ExecutionControl<T> p_309574_, FunctionCommand.Callbacks<T> p_309570_) 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_, ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>> p_305836_, ChainModifiers p_309703_)