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

[REQUEST]Improved documentation for nbt #88

Open
SirFancyBacon opened this issue Mar 25, 2019 · 1 comment
Open

[REQUEST]Improved documentation for nbt #88

SirFancyBacon opened this issue Mar 25, 2019 · 1 comment

Comments

@SirFancyBacon
Copy link

Hello,
Could you improve the documentation for nbt data? Most specifically The UnsafeData attribute and The UnsafeData attribute.

Just a few examples with some explanation will be fine. I have for example been unable to get UnsafeData working for me in anyway shape or form..

@ustc-zzzz
Copy link
Member

The UnsafeData works properly in most cases. However, some differences between HOCON and NBT String make some UnsafeData not working normally, and there is currently not any solution which is simple and elegant enough to solve this problem.

The core of the problem is that: HOCON is not a superset of NBT String. Consider that there are six types of numbers (byte, short, int, long, float, and double) for NBT String while there is only one type of representation in HOCON. Then consider that there are three types of arrays (byte arrays, int arrays and long arrays) defined in NBT String format while they have no suitable representation in HOCON at all.

I suspect that #55 is also because of this but I don't know how to solve this problem till now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants