Commit d6f3895
Add player object (#260)
* Wrap player object in class
* Add utility methods to player
* Add javadocs for player object
* Add javadocs for property accessors
* Add get level method to player
* Update examples
* Fix incorrect network exp
* Use getLongProperty instead of getNumberProperty.longValue
* Use fallback when displayname is not present
* Fix exp calculation
Co-authored-by: mdashlw <[email protected]>
* Add method for recent GameType
* Add method for PetStats
* Add methods to check player api visibility
* Add rank color & mc version methods to player
* Fix incorrect javadocs
* Fix javadoc typo
* Remove methods that access player settings
* Add public constructor to Player
* Check for exception in GetPlayerExample
* Return UUID instead of String from getUuid
* Move GSON into Utilities
* Clarify getUuid javadoc
Co-authored-by: Noe <[email protected]>
* Change getPlusColor to getSelectedPlusColor
* Explicitly exit in GetPlayerExample
* Clean up uuidFromString
Co-authored-by: Noe <[email protected]>
* Add hasProperty() to Player
* Add ComplexHypixelObject for property methods
* Remove extra parenthesis
* Simplify uuidFromString
* Begin property filter
* Let keys be removed from filter
* Check for null keys
* Document PropertyFilter
* Overload player fetch methods w/ filters
* Allow batch filtering
* Detect & fix key collisions
* Respect escapes when applying
* Respect escapes in #getProperty(...)
* Apply suggestions from code review
Co-authored-by: Noe <[email protected]>
* Make raw non-null
* Change "complex" to "unstable"
* Only compile key splitter once
* Private constructor & final for Utilities
* Remove redundant getProperty() logic
* More getProperty() simplifying
* Change with() to including()
* Remove "keys" from method names
* Clarify property javadocs
* Update exists() check
* Formatting & example change
* Fix null players & flip filter/object dependence
* Clarify documentation for players
* Use ZonedDateTime instead of Date
* Use a more informative example
* Add a note about getRaw()
* Suppression on lazily assigned field
* Change toString() for null players
* Fix broken import
Co-authored-by: mdashlw <[email protected]>
Co-authored-by: Noe <[email protected]>
Co-authored-by: Connor Linfoot <[email protected]>1 parent 85feb8b commit d6f3895
File tree
14 files changed
+1019
-43
lines changed- hypixel-api-core/src/main/java/net/hypixel/api
- adapters
- reply
- util
- hypixel-api-example/src/main/java/net/hypixel/api/example
- skyblock
- hypixel-api-transport-apache
- hypixel-api-transport-reactor
- hypixel-api-transport-unirest
14 files changed
+1019
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
Lines changed: 41 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
| 12 | + | |
17 | 13 | | |
| 14 | + | |
18 | 15 | | |
19 | | - | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 20 | | |
33 | 21 | | |
34 | 22 | | |
| |||
81 | 69 | | |
82 | 70 | | |
83 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
84 | 97 | | |
85 | 98 | | |
86 | 99 | | |
| |||
257 | 270 | | |
258 | 271 | | |
259 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
260 | 283 | | |
261 | 284 | | |
262 | 285 | | |
| |||
270 | 293 | | |
271 | 294 | | |
272 | 295 | | |
273 | | - | |
| 296 | + | |
274 | 297 | | |
275 | | - | |
| 298 | + | |
276 | 299 | | |
277 | 300 | | |
278 | 301 | | |
279 | 302 | | |
280 | 303 | | |
281 | 304 | | |
282 | | - | |
| 305 | + | |
283 | 306 | | |
284 | 307 | | |
285 | 308 | | |
| |||
292 | 315 | | |
293 | 316 | | |
294 | 317 | | |
295 | | - | |
| 318 | + | |
296 | 319 | | |
297 | 320 | | |
298 | 321 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
0 commit comments