public interface NBTManager
| Modifier and Type | Method and Description |
|---|---|
NBTTagCompound |
fromString(java.lang.String string)
Create a new
NBTTagCompound from the given String |
NBTTagCompound |
getNBTTag(org.bukkit.block.Block block)
Get a new
NBTTagCompound of the given Block |
NBTTagCompound |
getNBTTag(org.bukkit.entity.Entity entity)
Get a new
NBTTagCompound of the given Entity |
NBTTagCompound |
getNBTTag(org.bukkit.inventory.ItemStack itemStack)
Get a new
NBTTagCompound of the given ItemStack |
NBTTagCompound |
getNBTTag(org.bukkit.Location location)
Get a new
NBTTagCompound of the given Location |
default <T extends NBTBase> |
getSerializer(NBTTagType<T> type) |
<T extends NBTBase> |
of(NBTTagType<T> type)
Create a new child instance of
NBTBase |
<V,T extends NBTBase> |
of(NBTTagType<T> type,
V value)
Create a new child instance of
NBTBase |
void |
setNBTTag(org.bukkit.block.Block block,
NBTTagCompound nbtTagCompound)
Set to the given
Block the given NBTTagCompound |
void |
setNBTTag(org.bukkit.entity.Entity entity,
NBTTagCompound nbtTagCompound)
Set to the given
Entity the given NBTTagCompound |
void |
setNBTTag(org.bukkit.inventory.ItemStack itemStack,
NBTTagCompound nbtTagCompound)
Set to the given
ItemStack the given NBTTagCompound |
void |
setNBTTag(org.bukkit.Location location,
NBTTagCompound nbtTagCompound)
Set to the given
Location the given NBTTagCompound |
NBTTagCompound getNBTTag(org.bukkit.entity.Entity entity)
NBTTagCompound of the given Entityentity - the NBTTagCompound's ownerNBTTagCompound instance with Entity's datavoid setNBTTag(org.bukkit.entity.Entity entity,
NBTTagCompound nbtTagCompound)
Entity the given NBTTagCompoundentity - the owner of data to editnbtTagCompound - the NBTTagCompound used to set entity's dataNBTTagCompound getNBTTag(org.bukkit.inventory.ItemStack itemStack)
NBTTagCompound of the given ItemStackitemStack - the NBTTagCompound's ownerNBTTagCompound instance with ItemStack's datavoid setNBTTag(org.bukkit.inventory.ItemStack itemStack,
NBTTagCompound nbtTagCompound)
ItemStack the given NBTTagCompounditemStack - the owner of data to editnbtTagCompound - the NBTTagCompound used to set entity's dataNBTTagCompound getNBTTag(org.bukkit.block.Block block)
NBTTagCompound of the given Blockblock - the NBTTagCompound's ownerNBTTagCompound instance with Block's datavoid setNBTTag(org.bukkit.block.Block block,
NBTTagCompound nbtTagCompound)
Block the given NBTTagCompoundblock - the owner of data to editnbtTagCompound - the NBTTagCompound used to set entity's dataNBTTagCompound getNBTTag(org.bukkit.Location location)
NBTTagCompound of the given Locationlocation - the NBTTagCompound's ownerNBTTagCompound instance with Location's datavoid setNBTTag(org.bukkit.Location location,
NBTTagCompound nbtTagCompound)
Location the given NBTTagCompoundlocation - the owner of data to editnbtTagCompound - the NBTTagCompound used to set entity's data<V,T extends NBTBase> T of(NBTTagType<T> type, V value)
NBTBaseV - the value's generic typeT - the new instance's generic typetype - the NBTTagType of this NBTBasevalue - the value to set in the new NBTBase instance<T extends NBTBase> T of(NBTTagType<T> type)
NBTBaseT - the new instance's generic typetype - the NBTTagType of this NBTBaseNBTTagCompound fromString(java.lang.String string)
NBTTagCompound from the given Stringstring - the NBTTagCompound string representation (can be obtained by using NBTTagCompound.toString()NBTTagCompound instance with given valuesdefault <T extends NBTBase> NBTSerializer<T> getSerializer(NBTTagType<T> type)