Package | Description |
---|---|
de.tr7zw.changeme.nbtapi | |
de.tr7zw.changeme.nbtapi.handler | |
de.tr7zw.changeme.nbtapi.iface | |
de.tr7zw.changeme.nbtapi.utils |
Modifier and Type | Class and Description |
---|---|
class |
NBTCompound
Base class representing NMS Compounds.
|
class |
NBTContainer
A Standalone
NBTCompound implementation. |
class |
NBTEntity
NBT class to access vanilla tags from Entities.
|
class |
NBTFile
NBTCompound implementation backed by a File |
class |
NBTItem
NBT class to access vanilla/custom tags on ItemStacks.
|
class |
NBTListCompound
Cut down version of the
NBTCompound for inside
NBTCompoundList This Compound implementation is missing the ability
for further subCompounds and Lists. |
class |
NBTPersistentDataContainer |
class |
NBTTileEntity
NBT class to access vanilla tags from TileEntities.
|
Modifier and Type | Method and Description |
---|---|
static ReadableNBT |
NBT.readNbt(org.bukkit.inventory.ItemStack item)
Get a read only instance of the items NBT.
|
Modifier and Type | Method and Description |
---|---|
ReadWriteNBT |
NBTCompoundList.addCompound(ReadableNBT comp) |
static com.mojang.authlib.GameProfile |
NBT.gameProfileFromNBT(ReadableNBT compound)
It takes a NBT compound and returns a GameProfile
|
static org.bukkit.inventory.ItemStack[] |
NBT.itemStackArrayFromNBT(ReadableNBT compound)
It converts a ReadableNBT object into an array of ItemStacks
|
static org.bukkit.inventory.ItemStack |
NBT.itemStackFromNBT(ReadableNBT compound)
It converts a ReadableNBT object into an ItemStack
|
void |
NBTCompound.mergeCompound(ReadableNBT comp) |
Modifier and Type | Method and Description |
---|---|
static void |
NBT.get(org.bukkit.block.BlockState blockState,
Consumer<ReadableNBT> getter)
It takes an BlockEntity, and a Consumer that takes a ReadableNBT.
|
static <T> T |
NBT.get(org.bukkit.block.BlockState blockState,
Function<ReadableNBT,T> getter)
It takes a block state and a function that takes a readable NBT and returns a
value of type T.
|
static void |
NBT.get(org.bukkit.entity.Entity entity,
Consumer<ReadableNBT> getter)
It takes an Entity, and a Consumer that takes a ReadableNBT.
|
static <T> T |
NBT.get(org.bukkit.entity.Entity entity,
Function<ReadableNBT,T> getter)
It takes an entity and a function that takes a ReadableNBT and returns a
generic type T, and returns the result of the function
|
static void |
NBT.getComponents(org.bukkit.inventory.ItemStack item,
Consumer<ReadableNBT> consumer)
It takes an ItemStack and a Consumer<ReadWriteNBT>, and then applies
the Consumer to the ItemStacks Components as NBT.
|
static <T> T |
NBT.getComponents(org.bukkit.inventory.ItemStack item,
Function<ReadableNBT,T> function)
It takes an ItemStack and a Consumer<ReadWriteNBT>, and then applies
the Consumer to the ItemStacks Components as NBT.
|
static <T> T |
NBT.getPersistentData(org.bukkit.block.BlockState blockState,
Function<ReadableNBT,T> getter)
It takes a block entity and a function that takes a ReadableNBT and returns a
generic type T, and returns the result of the function, applied to the block
entities persistent data container
|
static <T> T |
NBT.getPersistentData(org.bukkit.entity.Entity entity,
Function<ReadableNBT,T> getter)
It takes an entity and a function that takes a ReadableNBT and returns a
generic type T, and returns the result of the function, applied to the
entities persistent data container
|
void |
NBTItem.modifyMeta(BiConsumer<ReadableNBT,org.bukkit.inventory.meta.ItemMeta> handler)
Gives save access to the
ItemMeta of the internal ItemStack . |
<T extends org.bukkit.inventory.meta.ItemMeta> |
NBTItem.modifyMeta(Class<T> type,
BiConsumer<ReadableNBT,T> handler)
Gives save access to the
ItemMeta of the internal ItemStack . |
Modifier and Type | Field and Description |
---|---|
static NBTHandler<ReadableNBT> |
NBTHandlers.STORE_READABLE_TAG |
Modifier and Type | Interface and Description |
---|---|
interface |
NBTFileHandle |
interface |
ReadableItemNBT |
interface |
ReadWriteItemNBT |
interface |
ReadWriteNBT |
Modifier and Type | Method and Description |
---|---|
ReadableNBT |
ReadableNBT.getCompound(String name) |
ReadableNBT |
ReadableNBT.resolveCompound(String key)
Returns the resolved Compound if exists, or null.
|
Modifier and Type | Method and Description |
---|---|
ReadWriteNBT |
ReadWriteNBTCompoundList.addCompound(ReadableNBT comp)
Adds a copy of the Compound to the end of the List and returns it.
|
T |
NBTHandler.get(ReadableNBT nbt,
String key) |
void |
ReadWriteNBT.mergeCompound(ReadableNBT comp)
Merges all data from comp into this compound.
|
Modifier and Type | Method and Description |
---|---|
void |
ReadWriteItemNBT.modifyMeta(BiConsumer<ReadableNBT,org.bukkit.inventory.meta.ItemMeta> handler)
Gives save access to the
ItemMeta of the internal ItemStack . |
<T extends org.bukkit.inventory.meta.ItemMeta> |
ReadWriteItemNBT.modifyMeta(Class<T> type,
BiConsumer<ReadableNBT,T> handler)
Gives save access to the
ItemMeta of the internal ItemStack . |
Modifier and Type | Method and Description |
---|---|
static com.mojang.authlib.GameProfile |
GameprofileUtil.readGameProfile(ReadableNBT arg) |
Copyright © 2015–2024 tr7zw. All rights reserved.