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

Improved StackReference Serialization #81

Merged
merged 26 commits into from
May 2, 2024
Merged

Conversation

WolfyScript
Copy link
Owner

StackReferences previously serialized the original stack, because it made it possible to change the parser afterwards. However that made it almost impossible to edit items from config.

This PR changes it so that StackIdentifiers can be serialized too so that the parsed information can be stored in the config and can easily be edited.

However, it has one downside. Once the recipe has been saved, the original stack you put into the slot is lost.
It now only exists in the form it was saved in, like the bukkit format, or another plugin item id.
When loaded back into the GUI that item will be the new "original item".

* Both formats are still supported
* One format defines the parser and original stack
* The other format defines the identifier and does not require parsing
* New StackReferences are serialized using the latter format
@WolfyScript WolfyScript self-assigned this May 2, 2024
@WolfyScript WolfyScript added the enhancement New feature or request label May 2, 2024
@WolfyScript WolfyScript merged commit 19e75b0 into master May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant