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

Prune PDC package #555

Closed
wants to merge 7 commits into from
Closed

Prune PDC package #555

wants to merge 7 commits into from

Conversation

Protonull
Copy link
Contributor

@Protonull Protonull commented Jun 27, 2024

It seems that PaperMC (or upstream) has finally added a few things that the pdc package gap-filled, so it's no longer necessary for us to have or maintain these custom solutions. I have also removed some things that aren't used.

@Protonull Protonull changed the title Remove custom boolean PDC type Prune PDC package Jun 27, 2024
@Protonull Protonull force-pushed the pdc-boolean branch 3 times, most recently from ce82798 to b0b49c9 Compare August 28, 2024 07:23
It seems that PaperMC (or upstream) has finally added a premade boolean PDC type, so it's no longer necessary for us to have our own.
PaperMC (or upstream) has finally added a native way to handle lists in PDCs.
The only thing this has over native PDCs is the size() method, which is never used regardless, nor is the class itself outside of NBTSerialization.fromPDC(), which itself is never used.
This has gone entirely unused and would likely not play nicely with PDCs due to its non-specific Map.class complex type. Better to require users to create a PDT for a specific record class.
This has gone entirely unused, but is also becoming more and more risky as certain APIs are shifting away from enums. For example, there's an intention to move Material away from an enum. This would make this PDT fail outright, even if the enum methods (like values()) are polyfilled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant