Skip to content

Commit

Permalink
perf: 修改LiteKookFactory#builder的返回类型
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmeng-qwq committed Sep 19, 2024
1 parent dd5f31a commit 53a1244
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

package snw.kookbc.impl.command.litecommands;

import dev.rollczi.litecommands.LiteCommandsBaseBuilder;
import dev.rollczi.litecommands.LiteCommandsBuilder;
import dev.rollczi.litecommands.LiteCommandsFactory;
import dev.rollczi.litecommands.extension.annotations.LiteAnnotationsProcessorExtension;
Expand Down Expand Up @@ -55,12 +56,12 @@ public class LiteKookFactory {
private LiteKookFactory() {
}

public static <B extends LiteCommandsBuilder<CommandSender, LiteKookSettings, B>> B builder(Plugin plugin) {
public static <B extends LiteCommandsBaseBuilder<CommandSender, LiteKookSettings, B>> B builder(Plugin plugin) {
return builder(plugin, new LiteKookSettings());
}

@SuppressWarnings("unchecked")
public static <B extends LiteCommandsBuilder<CommandSender, LiteKookSettings, B>> B builder(Plugin plugin, LiteKookSettings liteKookSettings) {
public static <B extends LiteCommandsBaseBuilder<CommandSender, LiteKookSettings, B>> B builder(Plugin plugin, LiteKookSettings liteKookSettings) {
KBCClient client = ((CoreImpl) plugin.getCore()).getClient();
HttpAPI httpAPI = plugin.getCore().getHttpAPI();
LiteAnnotationsProcessorExtension<CommandSender> processorExtension = new LiteAnnotationsProcessorExtension<>();
Expand Down

0 comments on commit 53a1244

Please sign in to comment.