Skip to content

Commit 5e6b73e

Browse files
committed
docs: SurfCoreApi.kt
1 parent dd8f028 commit 5e6b73e

File tree

1 file changed

+10
-0
lines changed
  • surf-api-core/surf-api-core-api/src/main/kotlin/dev/slne/surf/surfapi/core/api

1 file changed

+10
-0
lines changed

surf-api-core/surf-api-core-api/src/main/kotlin/dev/slne/surf/surfapi/core/api/SurfCoreApi.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,22 @@ interface SurfCoreApi {
1616
*/
1717
fun sendPlayerToServer(playerUuid: UUID, server: String)
1818

19+
/**
20+
* Returns the platform-specific player object for the specified player.
21+
*/
1922
fun getPlayer(playerUuid: UUID): Any?
2023

2124
companion object {
25+
26+
/**
27+
* The instance of the SurfCoreApi.
28+
*/
2229
@JvmStatic
2330
val instance = requiredService<SurfCoreApi>()
2431
}
2532
}
2633

34+
/**
35+
* The instance of the SurfCoreApi.
36+
*/
2737
val surfCoreApi get() = SurfCoreApi.instance

0 commit comments

Comments
 (0)