Uses of Interface
net.minecraft.server.function.CommandFunction
Packages that use CommandFunction
Package
Description
The base package for all Minecraft classes.
-
Uses of CommandFunction in net.minecraft
Classes in net.minecraft that implement CommandFunctionMethods in net.minecraft that return CommandFunction -
Uses of CommandFunction in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return CommandFunctionModifier and TypeMethodDescription(package private) static CommandFunction<ServerCommandSource>
CommandFunctionArgumentType.getFunction
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) Methods in net.minecraft.command.argument that return types with arguments of type CommandFunctionModifier and TypeMethodDescriptioncom.mojang.datafixers.util.Pair<Identifier,
com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> CommandFunctionArgumentType.FunctionArgument.getFunctionOrTag
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) com.mojang.datafixers.util.Pair<Identifier,
com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> CommandFunctionArgumentType.FunctionArgument.getFunctionOrTag
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) static com.mojang.datafixers.util.Pair<Identifier,
com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> CommandFunctionArgumentType.getFunctionOrTag
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static com.mojang.datafixers.util.Pair<Identifier,
com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> CommandFunctionArgumentType.getFunctionOrTag
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) CommandFunctionArgumentType.FunctionArgument.getFunctions
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) static Collection<CommandFunction<ServerCommandSource>>
CommandFunctionArgumentType.getFunctions
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) (package private) static Collection<CommandFunction<ServerCommandSource>>
CommandFunctionArgumentType.getFunctionTag
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) -
Uses of CommandFunction in net.minecraft.server.command
Method parameters in net.minecraft.server.command with type arguments of type CommandFunctionModifier and TypeMethodDescriptionprivate static int
ScheduleCommand.execute
(ServerCommandSource source, com.mojang.datafixers.util.Pair<Identifier, com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> function, int time, boolean replace) private static int
ScheduleCommand.execute
(ServerCommandSource source, com.mojang.datafixers.util.Pair<Identifier, com.mojang.datafixers.util.Either<CommandFunction<ServerCommandSource>, Collection<CommandFunction<ServerCommandSource>>>> function, int time, boolean replace) static <T extends class_8839<T>>
voidExecuteCommand.method_54264
(List<T> list, Function<T, T> function, IntPredicate intPredicate, com.mojang.brigadier.context.ContextChain<T> contextChain, @Nullable NbtCompound nbtCompound, class_8855<T> class_8855, ExecuteCommand.class_8830<T, Collection<CommandFunction<T>>> class_8830, boolean bool) static <T extends class_8839<T>>
voidFunctionCommand.method_54275
(Collection<CommandFunction<T>> collection, @Nullable NbtCompound nbtCompound, T t, T t2, class_8855<T> class_8855, FunctionCommand.class_8832<T> class_8832) -
Uses of CommandFunction in net.minecraft.server.function
Classes in net.minecraft.server.function that implement CommandFunctionFields in net.minecraft.server.function with type parameters of type CommandFunctionModifier and TypeFieldDescriptionprivate Optional<CommandFunction<ServerCommandSource>>
LazyContainer.function
private Map<Identifier,
CommandFunction<ServerCommandSource>> FunctionLoader.functions
private final TagGroupLoader<CommandFunction<ServerCommandSource>>
FunctionLoader.tagLoader
private Map<Identifier,
Collection<CommandFunction<ServerCommandSource>>> FunctionLoader.tags
private List<CommandFunction<ServerCommandSource>>
CommandFunctionManager.tickFunctions
A list ofminecraft:tick
tag functions to run on every tick.Methods in net.minecraft.server.function that return CommandFunctionModifier and TypeMethodDescriptionstatic <T extends class_8839<T>>
CommandFunction<T>CommandFunction.create
(Identifier id, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T t, List<String> lines) Parses a function in the context ofsource
.Methods in net.minecraft.server.function that return types with arguments of type CommandFunctionModifier and TypeMethodDescriptionFunctionLoader.get
(Identifier id) LazyContainer.get
(CommandFunctionManager manager) CommandFunctionManager.getFunction
(Identifier id) FunctionLoader.getFunctions()
CommandFunctionManager.getTag
(Identifier id) FunctionLoader.getTagOrEmpty
(Identifier id) Methods in net.minecraft.server.function with parameters of type CommandFunctionModifier and TypeMethodDescriptionvoid
CommandFunctionManager.execute
(CommandFunction<ServerCommandSource> function, ServerCommandSource serverCommandSource) Executes a function.Method parameters in net.minecraft.server.function with type arguments of type CommandFunctionModifier and TypeMethodDescriptionprivate void
CommandFunctionManager.executeAll
(Collection<CommandFunction<ServerCommandSource>> functions, Identifier label)