We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
as the title said.
The text was updated successfully, but these errors were encountered:
You are probably either missing the 1.20.3 nbt change or mixing item meta and nbt changes. See https://github.com/tr7zw/Item-NBT-API/wiki/Using-the-NBT-API#working-with-items
Sorry, something went wrong.
I used follow methods: 1:
NBTItem nbti = new NBTItem(item, true); nbti.getUUID("uuid"); //then itemStack lost its name
2:
NBTItem nbti = new NBTItem(item); nbti.setUUID("uuid", UUID.randomUUID()); nbti.applyNBT(item) //then itemStack lost its name
Both are deprecated and unsupported. Please use
NBT.modify(item, nbt -> { nbt.setUUID("uuid", UUID.randomUUID()); });
and
UUID uuid = NBT.get(item, nbt -> { return nbt.getUUID("uuid"); });
as stated in the javadoc/documentation.
If the name or uuid gets lost, you are mixing ItemMeta changes and nbt changes at the same time.
No branches or pull requests
as the title said.
The text was updated successfully, but these errors were encountered: