Package dk.lockfuglsang.minecraft.nbt
Interface NBTItemStackTagger
- All Known Implementing Classes:
CraftBukkitNBTTagger
public interface NBTItemStackTagger
Interface for allowing depencency injection for testing (and other platforms than CraftBukkit).
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
Returns a copy of theitemStack
with the suppliednbtTagString
applied.getNBTTag(org.bukkit.inventory.ItemStack itemStack)
Returns the NBTTag of theitemStack
as a string, or the empty-string if none was found.org.bukkit.inventory.ItemStack
Returns a copy of theitemStack
with the suppliednbtTagString
applied.
-
Method Details
-
getNBTTag
Returns the NBTTag of theitemStack
as a string, or the empty-string if none was found.- Parameters:
itemStack
- A Bukkit ItemStack- Returns:
- the NBTTag
- Since:
- 1.7.2
-
setNBTTag
Returns a copy of theitemStack
with the suppliednbtTagString
applied.- Parameters:
itemStack
- A Bukkit ItemStacktag
- A valid NBTTag string- Returns:
- a copy of the
itemStack
- Since:
- 1.7.2
-
addNBTTag
Returns a copy of theitemStack
with the suppliednbtTagString
applied.- Parameters:
itemStack
- A Bukkit ItemStacktag
- A valid NBTTag string- Returns:
- a copy of the
itemStack
- Since:
- 1.7.2
-