From 198dbfabae55e8a66f4acace9b67403ca63864d7 Mon Sep 17 00:00:00 2001 From: tr7zw Date: Mon, 29 Apr 2024 19:46:11 +0200 Subject: [PATCH] Fix wiki page --- wiki/Using-the-NBT-API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wiki/Using-the-NBT-API.md b/wiki/Using-the-NBT-API.md index 269b45f93..be1281ff1 100644 --- a/wiki/Using-the-NBT-API.md +++ b/wiki/Using-the-NBT-API.md @@ -27,11 +27,11 @@ GameProfile profile = NBT.nbtToGameProfile(nbt); // ItemStack to NBT ReadWriteNBT nbt = NBT.itemStackToNBT(itemStack); // NBT to ItemStack -ItemStack itemStack = NBT.nbtToItemStack(nbt); +ItemStack itemStack = NBT.itemStackFromNBT(nbt); // ItemStack Array to NBT ReadWriteNBT nbt = NBT.itemStackArrayToNBT(itemStacks); // NBT to ItemStack Array -ItemStack[] itemStacks = NBT.nbtToItemStackArray(nbt); +ItemStack[] itemStacks = NBT.itemStackArrayFromNBT(nbt); // Creating a new NBT tag ReadWriteNBT nbt = NBT.createNBTObject(); // Parsing a Mojang-Json String to NBT