Skip to content

Bridge Paper-specific trait methods through NMS#3320

Open
airgalaxie wants to merge 4 commits into
CitizensDev:masterfrom
airgalaxie:master
Open

Bridge Paper-specific trait methods through NMS#3320
airgalaxie wants to merge 4 commits into
CitizensDev:masterfrom
airgalaxie:master

Conversation

@airgalaxie

Copy link
Copy Markdown
Contributor

Moves direct Paper/Bukkit calls for versioned entity trait behavior behind the NMS bridge.

Changes:

  • Route CopperGolem weathering tick updates through NMS
  • Route Mannequin hide-description updates through NMS
  • Add default NMSBridge methods for these calls
  • Implement them in the active NMS modules

This keeps citizens-main from depending directly on version-specific Paper API methods while preserving the existing behavior.

Tested with:

  • mvn -Pdev -DskipTests package

Use EnderDragon#getSubEntities() in the v26_2_R1 controller instead of
directly accessing EnderDragon.subEntities. Paper 26.2 keeps that field private
at runtime, which caused an IllegalAccessError when EnderDragon NPCs ticked.
@fullwall

Copy link
Copy Markdown
Member

When were these methods added?

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.

2 participants