类的使用
net.minecraft.server.function.CommandFunction
-
使用CommandFunction的程序包 程序包 说明 net.minecraft.command.argument net.minecraft.server.command net.minecraft.server.function -
-
net.minecraft.command.argument中CommandFunction的使用
返回CommandFunction的net.minecraft.command.argument中的方法 修饰符和类型 方法 说明 private static CommandFunctionCommandFunctionArgumentType. getFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id)返回变量类型为CommandFunction的类型的net.minecraft.command.argument中的方法 修饰符和类型 方法 说明 com.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)Collection<CommandFunction>CommandFunctionArgumentType.FunctionArgument. getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)static Collection<CommandFunction>CommandFunctionArgumentType. getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)private static Tag<CommandFunction>CommandFunctionArgumentType. getFunctionTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) -
net.minecraft.server.command中CommandFunction的使用
类型变量类型为CommandFunction的net.minecraft.server.command中的方法参数 修饰符和类型 方法 说明 private static intFunctionCommand. execute(ServerCommandSource source, Collection<CommandFunction> functions)private static intScheduleCommand. execute(ServerCommandSource source, com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>> function, int time, boolean replace)private static intScheduleCommand. execute(ServerCommandSource source, com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>> function, int time, boolean replace) -
net.minecraft.server.function中CommandFunction的使用
类型参数类型为CommandFunction的net.minecraft.server.function中的字段 修饰符和类型 字段 说明 private Optional<CommandFunction>CommandFunction.LazyContainer. functionprivate Map<Identifier,CommandFunction>FunctionLoader. functionsprivate TagGroupLoader<CommandFunction>FunctionLoader. tagLoaderprivate TagGroup<CommandFunction>FunctionLoader. tagsprivate List<CommandFunction>CommandFunctionManager. tickFunctions返回CommandFunction的net.minecraft.server.function中的方法 修饰符和类型 方法 说明 static CommandFunctionCommandFunction. create(Identifier id, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source, List<String> lines)Parses a function in the context ofsource.返回变量类型为CommandFunction的类型的net.minecraft.server.function中的方法 修饰符和类型 方法 说明 Optional<CommandFunction>CommandFunction.LazyContainer. get(CommandFunctionManager manager)Optional<CommandFunction>FunctionLoader. get(Identifier id)Optional<CommandFunction>CommandFunctionManager. getFunction(Identifier id)Map<Identifier,CommandFunction>FunctionLoader. getFunctions()Tag<CommandFunction>FunctionLoader. getOrCreateTag(Identifier id)Tag<CommandFunction>CommandFunctionManager. getTaggedFunctions(Identifier tag)TagGroup<CommandFunction>FunctionLoader. getTags()参数类型为CommandFunction的net.minecraft.server.function中的方法 修饰符和类型 方法 说明 intCommandFunctionManager. execute(CommandFunction function, ServerCommandSource source)类型变量类型为CommandFunction的net.minecraft.server.function中的方法参数 修饰符和类型 方法 说明 private voidCommandFunctionManager. executeAll(Collection<CommandFunction> functions, Identifier label)参数类型为CommandFunction的net.minecraft.server.function中的构造器 构造器 说明 FunctionElement(CommandFunction function)LazyContainer(CommandFunction function)
-