Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit f6ea247

Browse files
committed
feat: update surf-api-gradle-plugin to version 1.21.10 and enhance API with new composite codec functions
1 parent 6aa3d22 commit f6ea247

File tree

8 files changed

+1059
-88
lines changed

8 files changed

+1059
-88
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
maven("https://repo.slne.dev/repository/maven-public/") { name = "maven-public" }
99
}
1010
dependencies {
11-
classpath("dev.slne.surf:surf-api-gradle-plugin:1.21.8+")
11+
classpath("dev.slne.surf:surf-api-gradle-plugin:1.21.10+")
1212
}
1313
}
1414

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kotlin.stdlib.default.dependency=false
55
kotlin.code.style=official
66
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
77
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
8-
version=1.21.8-1.0.0-SNAPSHOT
8+
version=1.21.10-1.0.0-SNAPSHOT
99
ksp.incremental=false
1010
ksp.incremental.log=true
1111
ksp.useKSP2=false

surf-cloud-api/surf-cloud-api-client/surf-cloud-api-client-common/api/surf-cloud-api-client-common.api

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,32 @@ public final class dev/slne/surf/cloud/api/client/netty/packet/NettyPacketClient
2121

2222
public abstract interface class dev/slne/surf/cloud/api/client/server/CloudClientServerManager : dev/slne/surf/cloud/api/common/server/CloudServerManager {
2323
public static final field Companion Ldev/slne/surf/cloud/api/client/server/CloudClientServerManager$Companion;
24+
public abstract fun current ()Ldev/slne/surf/cloud/api/common/server/CommonCloudServer;
25+
public abstract fun currentProxy ()Ldev/slne/surf/cloud/api/common/server/ProxyCloudServer;
2426
public abstract fun currentServer ()Ldev/slne/surf/cloud/api/common/server/CloudServer;
2527
}
2628

2729
public final class dev/slne/surf/cloud/api/client/server/CloudClientServerManager$Companion : dev/slne/surf/cloud/api/client/server/CloudClientServerManager {
2830
public fun broadcast (Lnet/kyori/adventure/text/Component;Ljava/lang/String;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
2931
public fun broadcastToGroup (Ljava/lang/String;Lnet/kyori/adventure/text/Component;Ljava/lang/String;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;
32+
public fun current ()Ldev/slne/surf/cloud/api/common/server/CommonCloudServer;
33+
public fun currentProxy ()Ldev/slne/surf/cloud/api/common/server/ProxyCloudServer;
3034
public fun currentServer ()Ldev/slne/surf/cloud/api/common/server/CloudServer;
3135
public fun pullPlayersToGroup (Ljava/lang/String;Ljava/util/Collection;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
3236
public fun retrieveAllServers ()Lit/unimi/dsi/fastutil/objects/ObjectCollection;
3337
public fun retrieveProxies ()Lit/unimi/dsi/fastutil/objects/ObjectCollection;
38+
public fun retrieveProxyList (Ljava/lang/String;)Lit/unimi/dsi/fastutil/objects/ObjectList;
3439
public fun retrieveServerByCategoryAndName (Ljava/lang/String;Ljava/lang/String;)Ldev/slne/surf/cloud/api/common/server/CommonCloudServer;
35-
public fun retrieveServerById (J)Ldev/slne/surf/cloud/api/common/server/CommonCloudServer;
3640
public fun retrieveServerByName (Ljava/lang/String;)Ldev/slne/surf/cloud/api/common/server/CommonCloudServer;
41+
public fun retrieveServerList (Ljava/lang/String;)Lit/unimi/dsi/fastutil/objects/ObjectList;
3742
public fun retrieveServers ()Lit/unimi/dsi/fastutil/objects/ObjectCollection;
3843
public fun retrieveServersByCategory (Ljava/lang/String;)Lit/unimi/dsi/fastutil/objects/ObjectList;
3944
public fun retrieveServersInGroup (Ljava/lang/String;)Lit/unimi/dsi/fastutil/objects/ObjectList;
4045
}
4146

47+
public final class dev/slne/surf/cloud/api/client/server/CloudClientServerManagerKt {
48+
public static final fun current (Ldev/slne/surf/cloud/api/common/server/CloudServer$Companion;)Ldev/slne/surf/cloud/api/common/server/CloudServer;
49+
public static final fun current (Ldev/slne/surf/cloud/api/common/server/CommonCloudServer$Companion;)Ldev/slne/surf/cloud/api/common/server/CommonCloudServer;
50+
public static final fun current (Ldev/slne/surf/cloud/api/common/server/ProxyCloudServer$Companion;)Ldev/slne/surf/cloud/api/common/server/ProxyCloudServer;
51+
}
52+

surf-cloud-api/surf-cloud-api-client/surf-cloud-api-client-paper/api/surf-cloud-api-client-paper.api

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ public final class dev/slne/surf/cloud/api/client/paper/Paper_cloud_converterKt
33
public static final fun toBukkitTpFlag (Ldev/slne/surf/cloud/api/common/player/teleport/TeleportFlag;)Lio/papermc/paper/entity/TeleportFlag;
44
public static final fun toCloudTpCause (Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;)Ldev/slne/surf/cloud/api/common/player/teleport/TeleportCause;
55
public static final fun toCloudTpFlag (Lio/papermc/paper/entity/TeleportFlag;)Ldev/slne/surf/cloud/api/common/player/teleport/TeleportFlag;
6-
public static final fun toCloudTpLocation (Lorg/bukkit/Location;)Ldev/slne/surf/cloud/api/common/player/teleport/TeleportLocation;
7-
public static final fun toLocation (Ldev/slne/surf/cloud/api/common/player/teleport/TeleportLocation;)Lorg/bukkit/Location;
6+
public static final fun toCloudTpLocation (Lorg/bukkit/Location;)Ldev/slne/surf/cloud/api/common/player/teleport/WorldLocation;
7+
public static final fun toLocation (Ldev/slne/surf/cloud/api/common/player/teleport/WorldLocation;)Lorg/bukkit/Location;
88
}
99

1010
public final class dev/slne/surf/cloud/api/client/paper/command/args/CloudServerArgument : dev/jorel/commandapi/arguments/CustomArgument {
@@ -70,6 +70,8 @@ public final class dev/slne/surf/cloud/api/client/paper/command/args/OnlineCloud
7070
public final class dev/slne/surf/cloud/api/client/paper/player/CloudPlayerBukkitExtensionsKt {
7171
public static final fun teleport (Ldev/slne/surf/cloud/api/common/player/CloudPlayer;Lorg/bukkit/Location;Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;[Lio/papermc/paper/entity/TeleportFlag;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
7272
public static synthetic fun teleport$default (Ldev/slne/surf/cloud/api/common/player/CloudPlayer;Lorg/bukkit/Location;Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;[Lio/papermc/paper/entity/TeleportFlag;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
73+
public static final fun toBukkitOfflinePlayer (Ldev/slne/surf/cloud/api/common/player/OfflineCloudPlayer;)Lorg/bukkit/OfflinePlayer;
74+
public static final fun toBukkitPlayer (Ldev/slne/surf/cloud/api/common/player/CloudPlayer;)Lorg/bukkit/entity/Player;
7375
public static final fun toCloudOfflinePlayer (Lorg/bukkit/OfflinePlayer;)Ldev/slne/surf/cloud/api/common/player/OfflineCloudPlayer;
7476
}
7577

Lines changed: 74 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,77 @@
1-
public final class dev/slne/surf/cloud/api/client/velocity/server/VelocityCloudServeExtensionsKt {
1+
public final class dev/slne/surf/cloud/api/client/velocity/InternalCloudVelocityBridge$Companion {
2+
public final fun getInstance ()Ldev/slne/surf/cloud/api/client/velocity/InternalCloudVelocityBridge;
3+
}
4+
5+
public final class dev/slne/surf/cloud/api/client/velocity/command/args/CloudServerArgument : dev/jorel/commandapi/arguments/Argument {
6+
public fun <init> (Ljava/lang/String;)V
7+
public fun getArgumentType ()Ldev/jorel/commandapi/arguments/CommandAPIArgumentType;
8+
public fun getPrimitiveType ()Ljava/lang/Class;
9+
public fun parseArgument (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ldev/jorel/commandapi/executors/CommandArguments;)Ldev/slne/surf/cloud/api/common/server/CloudServer;
10+
public synthetic fun parseArgument (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ldev/jorel/commandapi/executors/CommandArguments;)Ljava/lang/Object;
11+
}
12+
13+
public final class dev/slne/surf/cloud/api/client/velocity/command/args/CloudServerArgumentKt {
14+
public static final fun cloudServerArgument (Ldev/jorel/commandapi/CommandAPICommand;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/CommandAPICommand;
15+
public static final fun cloudServerArgument (Ldev/jorel/commandapi/CommandTree;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/CommandTree;
16+
public static final fun cloudServerArgument (Ldev/jorel/commandapi/arguments/Argument;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/arguments/Argument;
17+
public static synthetic fun cloudServerArgument$default (Ldev/jorel/commandapi/CommandAPICommand;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/CommandAPICommand;
18+
public static synthetic fun cloudServerArgument$default (Ldev/jorel/commandapi/CommandTree;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/CommandTree;
19+
public static synthetic fun cloudServerArgument$default (Ldev/jorel/commandapi/arguments/Argument;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/arguments/Argument;
20+
}
21+
22+
public final class dev/slne/surf/cloud/api/client/velocity/command/args/CloudServerGroupArgument : dev/jorel/commandapi/arguments/Argument {
23+
public fun <init> (Ljava/lang/String;)V
24+
public fun getArgumentType ()Ldev/jorel/commandapi/arguments/CommandAPIArgumentType;
25+
public fun getPrimitiveType ()Ljava/lang/Class;
26+
public synthetic fun parseArgument (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ldev/jorel/commandapi/executors/CommandArguments;)Ljava/lang/Object;
27+
public fun parseArgument (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ldev/jorel/commandapi/executors/CommandArguments;)Ljava/lang/String;
28+
}
29+
30+
public final class dev/slne/surf/cloud/api/client/velocity/command/args/CloudServerGroupArgumentKt {
31+
public static final fun cloudServerGroupArgument (Ldev/jorel/commandapi/CommandAPICommand;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/CommandAPICommand;
32+
public static final fun cloudServerGroupArgument (Ldev/jorel/commandapi/CommandTree;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/CommandTree;
33+
public static final fun cloudServerGroupArgument (Ldev/jorel/commandapi/arguments/Argument;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/arguments/Argument;
34+
public static synthetic fun cloudServerGroupArgument$default (Ldev/jorel/commandapi/CommandAPICommand;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/CommandAPICommand;
35+
public static synthetic fun cloudServerGroupArgument$default (Ldev/jorel/commandapi/CommandTree;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/CommandTree;
36+
public static synthetic fun cloudServerGroupArgument$default (Ldev/jorel/commandapi/arguments/Argument;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/arguments/Argument;
37+
}
38+
39+
public final class dev/slne/surf/cloud/api/client/velocity/command/args/OfflineCloudPlayerArgument : dev/jorel/commandapi/arguments/Argument {
40+
public fun <init> (Ljava/lang/String;)V
41+
public fun getArgumentType ()Ldev/jorel/commandapi/arguments/CommandAPIArgumentType;
42+
public fun getPrimitiveType ()Ljava/lang/Class;
43+
public synthetic fun parseArgument (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ldev/jorel/commandapi/executors/CommandArguments;)Ljava/lang/Object;
44+
public fun parseArgument (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ldev/jorel/commandapi/executors/CommandArguments;)Lkotlinx/coroutines/Deferred;
45+
}
46+
47+
public final class dev/slne/surf/cloud/api/client/velocity/command/args/OfflineCloudPlayerArgumentKt {
48+
public static final fun offlineCloudPlayerArgument (Ldev/jorel/commandapi/CommandAPICommand;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/CommandAPICommand;
49+
public static final fun offlineCloudPlayerArgument (Ldev/jorel/commandapi/CommandTree;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/CommandTree;
50+
public static final fun offlineCloudPlayerArgument (Ldev/jorel/commandapi/arguments/Argument;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/arguments/Argument;
51+
public static synthetic fun offlineCloudPlayerArgument$default (Ldev/jorel/commandapi/CommandAPICommand;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/CommandAPICommand;
52+
public static synthetic fun offlineCloudPlayerArgument$default (Ldev/jorel/commandapi/CommandTree;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/CommandTree;
53+
public static synthetic fun offlineCloudPlayerArgument$default (Ldev/jorel/commandapi/arguments/Argument;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/arguments/Argument;
54+
}
55+
56+
public final class dev/slne/surf/cloud/api/client/velocity/command/args/OnlineCloudPlayerArgument : dev/jorel/commandapi/arguments/Argument {
57+
public fun <init> (Ljava/lang/String;)V
58+
public fun getArgumentType ()Ldev/jorel/commandapi/arguments/CommandAPIArgumentType;
59+
public fun getPrimitiveType ()Ljava/lang/Class;
60+
public fun parseArgument (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ldev/jorel/commandapi/executors/CommandArguments;)Ldev/slne/surf/cloud/api/common/player/CloudPlayer;
61+
public synthetic fun parseArgument (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Ldev/jorel/commandapi/executors/CommandArguments;)Ljava/lang/Object;
62+
}
63+
64+
public final class dev/slne/surf/cloud/api/client/velocity/command/args/OnlineCloudPlayerArgumentKt {
65+
public static final fun onlineCloudPlayerArgument (Ldev/jorel/commandapi/CommandAPICommand;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/CommandAPICommand;
66+
public static final fun onlineCloudPlayerArgument (Ldev/jorel/commandapi/CommandTree;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/CommandTree;
67+
public static final fun onlineCloudPlayerArgument (Ldev/jorel/commandapi/arguments/Argument;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;)Ldev/jorel/commandapi/arguments/Argument;
68+
public static synthetic fun onlineCloudPlayerArgument$default (Ldev/jorel/commandapi/CommandAPICommand;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/CommandAPICommand;
69+
public static synthetic fun onlineCloudPlayerArgument$default (Ldev/jorel/commandapi/CommandTree;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/CommandTree;
70+
public static synthetic fun onlineCloudPlayerArgument$default (Ldev/jorel/commandapi/arguments/Argument;Ljava/lang/String;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/jorel/commandapi/arguments/Argument;
71+
}
72+
73+
public final class dev/slne/surf/cloud/api/client/velocity/server/VelocityCloudServerExtensionsKt {
74+
public static final fun toCloudServer (Lcom/velocitypowered/api/proxy/server/RegisteredServer;)Ldev/slne/surf/cloud/api/common/server/CloudServer;
275
public static final fun toRegisteredServer (Ldev/slne/surf/cloud/api/common/server/CloudServer;Lcom/velocitypowered/api/proxy/ProxyServer;)Lcom/velocitypowered/api/proxy/server/RegisteredServer;
376
}
477

0 commit comments

Comments
 (0)