Package | Description |
---|---|
me.dpohvar.powernbt.api |
Modifier and Type | Method and Description |
---|---|
NBTCompound |
NBTCompound.clone()
Create clone of this NBT compouns
|
NBTCompound |
NBTCompound.compound(String key)
Get NBTCompound or create new one
Example: NBTCompound cmp = new NBTCompound().compound("display").list("Lore").add("lore1"); // cmp = {display:{Lore:["lore1"]}} |
static NBTCompound |
NBTCompound.forNBT(Object tag)
Create new instance of NBTCompound by NBTTagCompound
|
static NBTCompound |
NBTCompound.forNBTCopy(Object tag)
Create new instance NBTCompound by copy of NBTTagCompound
|
NBTCompound |
NBTCompound.getCompound(String key)
Try to get NBTCompound
|
NBTCompound |
NBTManager.read(org.bukkit.block.Block block)
Read nbt data of tile entity at block.
|
NBTCompound |
NBTManager.read(org.bukkit.Chunk chunk)
Read nbt tag of
Chunk . |
NBTCompound |
NBTManager.read(org.bukkit.entity.Entity entity)
Read NBT tag of bukkit entity.
|
NBTCompound |
NBTManager.read(org.bukkit.inventory.ItemStack item)
Read nbt tag of
ItemStack . |
NBTCompound |
NBTManager.readCompressed(File file)
Read compressed nbt data from file and convert to java object.
|
NBTCompound |
NBTManager.readCompressed(InputStream inputStream)
Read compressed nbt compound.
|
NBTCompound |
NBTManager.readForgeData(org.bukkit.entity.Entity entity)
Read extra nbt data of entity.
|
NBTCompound |
NBTManager.readOfflinePlayer(org.bukkit.OfflinePlayer player)
Read offline player's .dat file.
|
NBTCompound |
NBTManager.readOfflinePlayer(String player)
Read offline player's .dat file.
|
Modifier and Type | Method and Description |
---|---|
Object |
NBTCompound.bind(String key,
NBTCompound value)
Put NBTCompound to handle without using cloning.
|
org.bukkit.inventory.ItemStack |
NBTManager.createCraftItemStack(NBTCompound compound)
Create CraftItemStack from nbt value
|
org.bukkit.entity.Entity |
NBTManager.spawnEntity(NBTCompound compound,
org.bukkit.World world)
Spawn entity in world by nbt compound.
|
void |
NBTManager.write(org.bukkit.block.Block block,
NBTCompound compound)
Save nbt data to tile entity at block.
|
void |
NBTManager.write(org.bukkit.Chunk chunk,
NBTCompound compound)
Store nbt tag to selected chunk.
|
void |
NBTManager.write(org.bukkit.entity.Entity entity,
NBTCompound compound)
Store nbt data to entity.
|
void |
NBTManager.write(org.bukkit.inventory.ItemStack item,
NBTCompound compound)
Save nbt tag to item stack.
|
void |
NBTManager.writeCompressed(File file,
NBTCompound value)
Convert value to nbt and write to file with compression.
|
void |
NBTManager.writeCompressed(OutputStream outputStream,
NBTCompound value)
Compress nbt compound and write to outputStream.
|
void |
NBTManager.writeForgeData(org.bukkit.entity.Entity entity,
NBTCompound compound)
Store extra nbt data to entity.
|
boolean |
NBTManager.writeOfflinePlayer(org.bukkit.OfflinePlayer player,
NBTCompound value)
Write nbt data to player's .dat file.
|
boolean |
NBTManager.writeOfflinePlayer(String player,
NBTCompound value)
Write nbt data to player's .dat file.
|
Copyright © 2017. All rights reserved.