Skip to content

Improve sendEmote api - #6655

Merged
eclipseisoffline merged 18 commits into
GeyserMC:feature/26.60from
TotallyNoCallum:master
Oct 26, 2026
Merged

eclipseisoffline merged 18 commits into
GeyserMC:feature/26.60from
TotallyNoCallum:master

Conversation

@TotallyNoCallum

Copy link
Copy Markdown
Contributor

This PR deprecates the GeyserConnection#sendEmote(GeyserPlayerEntity, String) and replaces it with GeyserConnection#sendEmote(AvatarEntity, String, boolean), which allows this to work with both Mannequin and Player entities, and also gives the option to silence the chat announcement

I wasn't able to test the new API method I added since I cant get publishToMavenLocal to work, but this does compile fine, and plugins using the (now) deprecated method still work

First actual PR, feel free to criticize

There is a few things im unsure of that might need changing before merging
for GeyserEntityData.java, I wasn't able to remove the old method since Geyser wouldn't compile if I did that, so I had to make a new method and redirect the old one to that. I also had to make a new method in EntityData.java which im not a fan of since its just useless rn
And also in GeyserConnection.java, not sure if I should say "avatar entity" or "player or mannequin entity" in the javadoc

@Novampr Novampr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Generally seems good, would be happy to merge provided this was tested correctly (which I trust you have)

Comment thread api/src/main/java/org/geysermc/geyser/api/entity/EntityData.java Outdated
@TotallyNoCallum

Copy link
Copy Markdown
Contributor Author

So the gametests where the thing causing publishToMavenLocal to not work for me, disabled that temporarily and properly tested this PR with mannequins

Tho mannequin's name in emote chat announcements is completely blank, do we force the silent bool for mannequins or do we leave it like this?
image

@TotallyNoCallum

Copy link
Copy Markdown
Contributor Author

Decided to force silence the emote message if the entity name is blank
I think this PR is ready to be merged unless theres anything else you want me to change

Comment thread core/src/main/java/org/geysermc/geyser/entity/GeyserEntityData.java Outdated
Comment thread api/src/main/java/org/geysermc/geyser/api/connection/GeyserConnection.java Outdated
@onebeastchris
onebeastchris changed the base branch from master to feature/26.50 September 6, 2026 20:39
@eclipseisoffline eclipseisoffline added PR: Feature When a PR implements a new feature API The issue/feature request relates to the Geyser API PR: Future API Addition An API addition which is planned for the next version of Geyser labels Oct 24, 2026

@eclipseisoffline eclipseisoffline left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would like to get this in our 26.60 update - once we have a feature branch for that the target of this PR can be updated. It looks like some unrelated changes got in your PR when merging branches earlier (FloodgateSkinUploader and Constants), but those should hopefully resolve themselves when updating the target.

Comment thread api/src/main/java/org/geysermc/geyser/api/connection/GeyserConnection.java Outdated
Comment thread api/src/main/java/org/geysermc/geyser/api/entity/EntityData.java Outdated
Comment thread core/src/main/java/org/geysermc/geyser/entity/GeyserEntityData.java Outdated
Comment thread core/src/main/java/org/geysermc/geyser/session/GeyserSession.java Outdated
Comment thread api/src/main/java/org/geysermc/geyser/api/entity/EntityData.java
Comment thread api/src/main/java/org/geysermc/geyser/api/connection/GeyserConnection.java Outdated
@eclipseisoffline
eclipseisoffline changed the base branch from feature/26.50 to feature/26.60 October 25, 2026 21:13

@eclipseisoffline eclipseisoffline left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good to me now, thank you!

Comment thread api/src/main/java/org/geysermc/geyser/api/connection/GeyserConnection.java Outdated
Comment thread api/src/main/java/org/geysermc/geyser/api/entity/EntityData.java Outdated
Comment thread core/src/main/java/org/geysermc/geyser/entity/GeyserEntityData.java
Comment thread core/src/main/java/org/geysermc/geyser/session/GeyserSession.java
@eclipseisoffline

Copy link
Copy Markdown
Member

Could you merge the 26.60 branch into yours? Then this PR should be good to go!

TotallyNoCallum and others added 2 commits October 26, 2026 16:14
feature/26.60 -> Improve sendEmote api (attempt 2)
# Conflicts:
#	core/src/main/java/org/geysermc/geyser/network/bedrock/CodecProcessor.java
#	core/src/main/java/org/geysermc/geyser/registry/populator/BlockRegistryPopulator.java
#	core/src/main/java/org/geysermc/geyser/registry/populator/ItemRegistryPopulator.java
#	core/src/main/java/org/geysermc/geyser/registry/populator/conversion/ICanHasMoreStates.java
#	core/src/main/java/org/geysermc/geyser/registry/populator/conversion/ICanHasStates.java
#	core/src/main/java/org/geysermc/geyser/registry/populator/conversion/WildernessBoundConverter.java
#	core/src/main/resources/mappings
@eclipseisoffline
eclipseisoffline merged commit fd45160 into GeyserMC:feature/26.60 Oct 26, 2026
2 checks passed
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: Feature When a PR implements a new feature PR: Future API Addition An API addition which is planned for the next version of Geyser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants