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

Preferences system and api #3958

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

Konicai
Copy link
Member

@Konicai Konicai commented Jul 10, 2023

  • actually expose the system to the api
  • fix onUpdate
  • allow not providing a cumulus Component (don't show in settings form)
  • player leave event
  • testing
  • javadoc
  • i'll write more here later when this is more filled in

@Konicai Konicai marked this pull request as ready for review July 12, 2023 08:39
@@ -95,4 +98,12 @@ public interface GeyserConnection extends Connection, CommandSource {
*/
@NonNull
Set<String> fogEffects();

<T> void storePreference(@NonNull PreferenceKey<T> key, @NonNull Preference<T> preference);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Javadocs here please. We should emphasize this system is Geyser and not Bedrock.


import java.util.Objects;

public abstract class Preference<T> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Javadoc

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after the structure is finalized :p

@Konicai Konicai added the PR: On hold When a PR is on hold like if it requires a dependency to be updated first label Sep 2, 2023
@Konicai Konicai added the API The issue/feature request relates to the Geyser API label Oct 8, 2023
@onebeastchris onebeastchris marked this pull request as draft August 20, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API The issue/feature request relates to the Geyser API PR: On hold When a PR is on hold like if it requires a dependency to be updated first
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants