Package dk.lockfuglsang.minecraft.nbt
Class CraftBukkitNBTTagger
java.lang.Object
dk.lockfuglsang.minecraft.nbt.CraftBukkitNBTTagger
- All Implemented Interfaces:
NBTItemStackTagger
An NBTItemStackTagger using reflection for CraftBukkit based servers.
-
Constructor Summary
-
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.
-
Constructor Details
-
CraftBukkitNBTTagger
public CraftBukkitNBTTagger()
-
-
Method Details
-
getNBTTag
Description copied from interface:NBTItemStackTagger
Returns the NBTTag of theitemStack
as a string, or the empty-string if none was found.- Specified by:
getNBTTag
in interfaceNBTItemStackTagger
- Parameters:
itemStack
- A Bukkit ItemStack- Returns:
- the NBTTag
-
setNBTTag
public org.bukkit.inventory.ItemStack setNBTTag(org.bukkit.inventory.ItemStack itemStack, String nbtTagString)Description copied from interface:NBTItemStackTagger
Returns a copy of theitemStack
with the suppliednbtTagString
applied.- Specified by:
setNBTTag
in interfaceNBTItemStackTagger
- Parameters:
itemStack
- A Bukkit ItemStacknbtTagString
- A valid NBTTag string- Returns:
- a copy of the
itemStack
-
addNBTTag
public org.bukkit.inventory.ItemStack addNBTTag(org.bukkit.inventory.ItemStack itemStack, String nbtTagString)Description copied from interface:NBTItemStackTagger
Returns a copy of theitemStack
with the suppliednbtTagString
applied.- Specified by:
addNBTTag
in interfaceNBTItemStackTagger
- Parameters:
itemStack
- A Bukkit ItemStacknbtTagString
- A valid NBTTag string- Returns:
- a copy of the
itemStack
-