| Package | Description |
|---|---|
| de.tr7zw.changeme.nbtapi |
| Modifier and Type | Class and Description |
|---|---|
class |
NBTItem
NBT class to access vanilla/custom tags on ItemStacks.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
NBT.modify(org.bukkit.inventory.ItemStack item,
Consumer<ReadWriteItemNBT> consumer)
It takes an ItemStack and a Consumer<ReadWriteNBT>, and then applies
the Consumer to the ItemStacks NBT
|
static <T> T |
NBT.modify(org.bukkit.inventory.ItemStack item,
Function<ReadWriteItemNBT,T> function)
It takes an ItemStack, applies a function to its NBT, and returns the result
of the function
|
Copyright © 2015–2025 tr7zw. All rights reserved.