Uses of Class
net.minecraft.server.function.CommandFunction
Package
Description
-
Uses of CommandFunction in net.minecraft.command.argument
Modifier and TypeMethodDescription(package private) static CommandFunction
CommandFunctionArgumentType.getFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id)
Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>>
CommandFunctionArgumentType.FunctionArgument.getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)
com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>>
CommandFunctionArgumentType.FunctionArgument.getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)
static com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>>
CommandFunctionArgumentType.getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
static com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>>
CommandFunctionArgumentType.getFunctionOrTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
CommandFunctionArgumentType.FunctionArgument.getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)
static Collection<CommandFunction>
CommandFunctionArgumentType.getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
(package private) static Tag<CommandFunction>
CommandFunctionArgumentType.getFunctionTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id)
-
Uses of CommandFunction in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
FunctionCommand.execute(ServerCommandSource source, Collection<CommandFunction> functions)
private static int
ScheduleCommand.execute(ServerCommandSource source, com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>> function, int time, boolean replace)
private static int
ScheduleCommand.execute(ServerCommandSource source, com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>> function, int time, boolean replace)
private static int
DebugCommand.executeFunction(ServerCommandSource source, Collection<CommandFunction> functions)
-
Uses of CommandFunction in net.minecraft.server.function
Modifier and TypeFieldDescriptionprivate Optional<CommandFunction>
CommandFunction.LazyContainer.function
private Map<Identifier,CommandFunction>
FunctionLoader.functions
private TagGroupLoader<CommandFunction>
FunctionLoader.tagLoader
private TagGroup<CommandFunction>
FunctionLoader.tags
private List<CommandFunction>
CommandFunctionManager.tickFunctions
Modifier and TypeMethodDescriptionstatic CommandFunction
CommandFunction.create(Identifier id, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source, List<String> lines)
Parses a function in the context ofsource
.Modifier and TypeMethodDescriptionCommandFunction.LazyContainer.get(CommandFunctionManager manager)
FunctionLoader.get(Identifier id)
CommandFunctionManager.getFunction(Identifier id)
FunctionLoader.getFunctions()
FunctionLoader.getOrCreateTag(Identifier id)
CommandFunctionManager.getTaggedFunctions(Identifier tag)
FunctionLoader.getTags()
Modifier and TypeMethodDescriptionint
CommandFunctionManager.execute(CommandFunction function, ServerCommandSource source)
int
CommandFunctionManager.execute(CommandFunction function, ServerCommandSource source, @Nullable CommandFunctionManager.Tracer tracer)
(package private) void
CommandFunctionManager.class_6345.method_36343(CommandFunction function, ServerCommandSource source)
(package private) int
CommandFunctionManager.class_6345.method_36346(CommandFunction function, ServerCommandSource source)
Modifier and TypeMethodDescriptionprivate void
CommandFunctionManager.executeAll(Collection<CommandFunction> functions, Identifier label)
ModifierConstructorDescriptionFunctionElement(CommandFunction function)
LazyContainer(CommandFunction function)