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_312555_, String p_311726_) 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_313207_) -
Uses of CommandFunction in net.minecraft.commands.functions
Modifier and TypeClassDescriptionclass
MacroFunction<T extends ExecutionCommandSource<T>>
final record
Modifier and TypeMethodDescriptionFunctionBuilder.build
(ResourceLocation p_311383_) static <T extends ExecutionCommandSource<T>>
CommandFunction<T>CommandFunction.fromLines
(ResourceLocation p_312869_, com.mojang.brigadier.CommandDispatcher<T> p_310963_, T p_312231_, List<String> p_310814_) -
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_311911_, 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_312138_, ExecutionControl<T> p_309532_, com.mojang.brigadier.CommandDispatcher<T> p_312204_, T p_311370_, CommandFunction<T> p_310160_, ResourceLocation p_311048_, CommandResultCallback p_312950_, boolean p_312453_) Modifier and TypeMethodDescriptionstatic <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctions
(Collection<CommandFunction<T>> p_311080_, CompoundTag p_311435_, T p_310141_, T p_312402_, ExecutionControl<T> p_309669_, FunctionCommand.Callbacks<T> p_312300_, ChainModifiers p_312226_) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsAsReturn
(Collection<CommandFunction<T>> p_309905_, CompoundTag p_312616_, T p_312541_, T p_310023_, ExecutionControl<T> p_312344_, FunctionCommand.Callbacks<T> p_309916_) private static <T extends ExecutionCommandSource<T>>
voidFunctionCommand.queueFunctionsNoReturn
(Collection<CommandFunction<T>> p_312947_, CompoundTag p_311961_, T p_310755_, T p_312089_, ExecutionControl<T> p_310294_, FunctionCommand.Callbacks<T> p_311742_) 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_311643_, List<T> p_313143_, Function<T, T> p_312920_, IntPredicate p_311696_, com.mojang.brigadier.context.ContextChain<T> p_311450_, CompoundTag p_313177_, ExecutionControl<T> p_310605_, ExecuteCommand.CommandGetter<T, Collection<CommandFunction<T>>> p_311694_, ChainModifiers p_312493_)