Commit 5b3a8a1
committed
feat: add mapAsync utility and improve player-related API functions
- Introduced `Iterable<E>.mapAsync()` for parallel processing of async transformations.
- Enhanced `forEachPlayerInRegion` to support explicit plugin parameter and deprecated inefficient overload.
- Added utility methods to convert UUID collections to offline players.
- Added deprecation notices for inefficient dispatcher helper methods.1 parent c47b1ae commit 5b3a8a1
File tree
5 files changed
+43
-4
lines changed- surf-api-bukkit/surf-api-bukkit-api
- api
- src/main/kotlin/dev/slne/surf/surfapi/bukkit/api/util
- surf-api-core/surf-api-core-api
- api
- src/main/kotlin/dev/slne/surf/surfapi/core/api/util
- surf-api-velocity/surf-api-velocity-api/api
5 files changed
+43
-4
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2043 | 2043 | | |
2044 | 2044 | | |
2045 | 2045 | | |
| 2046 | + | |
2046 | 2047 | | |
| 2048 | + | |
2047 | 2049 | | |
2048 | 2050 | | |
2049 | 2051 | | |
| |||
2056 | 2058 | | |
2057 | 2059 | | |
2058 | 2060 | | |
| 2061 | + | |
| 2062 | + | |
2059 | 2063 | | |
2060 | 2064 | | |
2061 | 2065 | | |
| |||
5953 | 5957 | | |
5954 | 5958 | | |
5955 | 5959 | | |
| 5960 | + | |
5956 | 5961 | | |
5957 | 5962 | | |
5958 | 5963 | | |
| |||
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
57 | 70 | | |
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
61 | 74 | | |
62 | 75 | | |
63 | 76 | | |
| 77 | + | |
64 | 78 | | |
65 | 79 | | |
66 | 80 | | |
| |||
69 | 83 | | |
70 | 84 | | |
71 | 85 | | |
72 | | - | |
| 86 | + | |
73 | 87 | | |
74 | 88 | | |
75 | 89 | | |
76 | 90 | | |
77 | 91 | | |
78 | 92 | | |
79 | 93 | | |
80 | | - | |
| 94 | + | |
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
| |||
124 | 138 | | |
125 | 139 | | |
126 | 140 | | |
| 141 | + | |
| 142 | + | |
127 | 143 | | |
128 | 144 | | |
129 | 145 | | |
| |||
132 | 148 | | |
133 | 149 | | |
134 | 150 | | |
| 151 | + | |
| 152 | + | |
135 | 153 | | |
136 | 154 | | |
137 | 155 | | |
| |||
155 | 173 | | |
156 | 174 | | |
157 | 175 | | |
158 | | - | |
| 176 | + | |
159 | 177 | | |
160 | 178 | | |
161 | 179 | | |
| |||
167 | 185 | | |
168 | 186 | | |
169 | 187 | | |
| 188 | + | |
170 | 189 | | |
171 | 190 | | |
172 | 191 | | |
| |||
191 | 210 | | |
192 | 211 | | |
193 | 212 | | |
194 | | - | |
| 213 | + | |
195 | 214 | | |
196 | 215 | | |
197 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4328 | 4328 | | |
4329 | 4329 | | |
4330 | 4330 | | |
| 4331 | + | |
4331 | 4332 | | |
4332 | 4333 | | |
4333 | 4334 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
385 | 398 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4529 | 4529 | | |
4530 | 4530 | | |
4531 | 4531 | | |
| 4532 | + | |
4532 | 4533 | | |
4533 | 4534 | | |
4534 | 4535 | | |
| |||
0 commit comments