Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

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
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant