Skip to content

Commit 2db14d1

Browse files
committed
feat: format KDAPIInterface.java
1 parent 611dae0 commit 2db14d1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/main/java/jp/azisaba/lgw/kdstatus/api/KDAPIInterface.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
interface KDAPIInterface {
1616
/**
1717
* Get specific user's data. If data wasn't found, create new userdata.
18+
*
1819
* @param uuid UUID of player
1920
* @param name Name of player
2021
* @return returns KDUserData.
@@ -24,6 +25,7 @@ interface KDAPIInterface {
2425

2526
/**
2627
* Get specific user's data
28+
*
2729
* @param uuid UUID of player
2830
* @return returns KDUserData. If failed, returns null.
2931
*/
@@ -32,6 +34,7 @@ interface KDAPIInterface {
3234

3335
/**
3436
* Get specific user's ranking
37+
*
3538
* @param uuid UUID of player
3639
* @param unit Unit of ranking
3740
* @return returns ranking order. If failed, returns -1.
@@ -40,33 +43,37 @@ interface KDAPIInterface {
4043

4144
/**
4245
* Get ranking by timeunit
43-
* @param unit TimeUnit of ranking
46+
*
47+
* @param unit TimeUnit of ranking
4448
* @param maxSize Maximum size of ranking
4549
* @return List of {@link KillRankingData}. If failed, returns empty list.
4650
*/
4751
List<KillRankingData> getTopKillRankingData(@NotNull TimeUnit unit, int maxSize);
4852

4953
// === Won't need to implement each ===
54+
5055
/**
5156
* Get specific user's kill count
57+
*
5258
* @param uuid UUID of player
5359
* @param unit Unit of ranking
5460
* @return returns kill count. If failed, returns -1.
5561
*/
5662
default int getKills(@NotNull UUID uuid, @NotNull TimeUnit unit) {
5763
var userdata = getUserData(uuid);
58-
if(userdata == null) return -1;
64+
if (userdata == null) return -1;
5965
return userdata.getKills(unit);
6066
}
6167

6268
/**
6369
* Get specific user's death count
70+
*
6471
* @param uuid UUID of player
6572
* @return returns total death count. If failed, returns -1
6673
*/
6774
default int getDeaths(@NotNull UUID uuid) {
6875
var userdata = getUserData(uuid);
69-
if(userdata == null) return -1;
76+
if (userdata == null) return -1;
7077
return userdata.getDeaths();
7178
}
7279
}

0 commit comments

Comments
 (0)