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

Create a new NBTParser class for snbt & path lookup #22

Open
TheMode opened this issue May 1, 2022 · 0 comments
Open

Create a new NBTParser class for snbt & path lookup #22

TheMode opened this issue May 1, 2022 · 0 comments

Comments

@TheMode
Copy link
Member

TheMode commented May 1, 2022

Deprecate SNBTParser in favor of a new NBTParser class hosting various static utils

NBT parseSnbt(String snbt)

NBT extractPath(NBTCompound compound, String path)

String extractPath(String compoundSnbt, String path)

NBTCompound replacePath(NBTCompound compound, String path, NBT nbt)

String replacePath(String compoundSnbt, String path, NBT nbt)

The new path system is suggested to become a perfect copy of sqlite's json path syntax: https://www.sqlite.org/json1.html#jex

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

No branches or pull requests

1 participant