Skip to content

Expand Entity Sound API#13914

Open
LeonTG wants to merge 3 commits into
PaperMC:mainfrom
LeonTG:expand-sound-api
Open

Expand Entity Sound API#13914
LeonTG wants to merge 3 commits into
PaperMC:mainfrom
LeonTG:expand-sound-api

Conversation

@LeonTG
Copy link
Copy Markdown

@LeonTG LeonTG commented May 26, 2026

I added this to my own Paper fork, figured it was nice API for others to use too

@LeonTG LeonTG requested a review from a team as a code owner May 26, 2026 19:38
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue May 26, 2026
Comment thread paper-api/src/main/java/org/bukkit/entity/Entity.java Outdated
}

@Override
public Sound getHurtSound(org.bukkit.damage.DamageSource damageSource) {
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.

The import and maybe add the Precondition for null

Copy link
Copy Markdown
Author

@LeonTG LeonTG May 26, 2026

Choose a reason for hiding this comment

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

Both done now!

The import for that specific method was already taken by nms DamageSource class, which was being used a lot in the class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

2 participants