- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Added legacy show achievements #890
Conversation
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 think this should be fine to add, as much as it is of limited use to most users it doesn't really harm anything or increase maintenance burden. Just a few nitpicks on style though.
api/src/main/java/net/kyori/adventure/text/event/HoverEvent.java
Outdated
Show resolved
Hide resolved
api/src/main/java/net/kyori/adventure/text/event/HoverEvent.java
Outdated
Show resolved
Hide resolved
There you go :) |
...erializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/SerializerFactory.java
Outdated
Show resolved
Hide resolved
...erializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/SerializerFactory.java
Outdated
Show resolved
Hide resolved
...-serializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/StyleSerializer.java
Outdated
Show resolved
Hide resolved
retracted pending resolution of @emilyy-dev's review comments
There you go (again) |
...-serializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/StyleSerializer.java
Show resolved
Hide resolved
And again :) |
Before Minecraft 1.12, there is a hover event action called
show_achievement
.Here's an example of it:
This PR adds legacy support to it.
Vanilla clients on or after 1.12 can silently ignore these hover events, so there should be no need to deliberately remove them if someone were to send them to modern clients.