Skip to content

Commit

Permalink
Fix wiki page
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Apr 29, 2024
1 parent 8bd49db commit 198dbfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiki/Using-the-NBT-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 198dbfa

Please sign in to comment.