-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profiled data api #1102
Profiled data api #1102
Conversation
It's usable as is, so I'll mark this as ready. |
src/main/java/de/hysky/skyblocker/utils/profile/ProfiledData.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
public CompletableFuture<Void> init() { | ||
ClientLifecycleEvents.CLIENT_STOPPING.register(client -> save()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could stuff this at the end of the constructor and delete the method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to return a completable future.
src/main/java/de/hysky/skyblocker/utils/profile/ProfiledData.java
Outdated
Show resolved
Hide resolved
return containsKey(Utils.getUuid(), Utils.getProfileId()); | ||
} | ||
|
||
public boolean containsKey(UUID uuid, String profileId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the containsKey
(mainly the key) terminology is very clear or helpful here. It would be better off as containsSave
(not great) or smth similar but you get the idea.
Replaces pet cache, end stats, museum, accessory helper, slayer timer, and powder mining tracker.