Skip to content
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

Merged
merged 12 commits into from
Jan 5, 2025

Conversation

kevinthegreat1
Copy link
Collaborator

@kevinthegreat1 kevinthegreat1 commented Dec 24, 2024

Replaces pet cache, end stats, museum, accessory helper, slayer timer, and powder mining tracker.

@LifeIsAParadox LifeIsAParadox added the wip This PR is a work in progress label Dec 24, 2024
@kevinthegreat1 kevinthegreat1 marked this pull request as ready for review December 27, 2024 02:26
@LifeIsAParadox LifeIsAParadox added reviews needed This PR needs reviews and removed wip This PR is a work in progress labels Dec 27, 2024
@kevinthegreat1
Copy link
Collaborator Author

It's usable as is, so I'll mark this as ready.

}

public CompletableFuture<Void> init() {
ClientLifecycleEvents.CLIENT_STOPPING.register(client -> save());
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

return containsKey(Utils.getUuid(), Utils.getProfileId());
}

public boolean containsKey(UUID uuid, String profileId) {
Copy link
Collaborator

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.

@LifeIsAParadox LifeIsAParadox added changes requested This PR need changes and removed reviews needed This PR needs reviews labels Jan 4, 2025
@LifeIsAParadox LifeIsAParadox added reviews needed This PR needs reviews and removed changes requested This PR need changes labels Jan 4, 2025
@kevinthegreat1 kevinthegreat1 merged commit e4ea0c5 into SkyblockerMod:master Jan 5, 2025
1 check passed
@kevinthegreat1 kevinthegreat1 deleted the profiled-data-api branch January 5, 2025 02:06
@LifeIsAParadox LifeIsAParadox removed the reviews needed This PR needs reviews label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants