Package | Description |
---|---|
de.tr7zw.changeme.nbtapi | |
de.tr7zw.changeme.nbtapi.handler | |
de.tr7zw.changeme.nbtapi.iface | |
de.tr7zw.changeme.nbtapi.utils | |
de.tr7zw.changeme.nbtapi.wrapper |
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 |
---|---|
ReadWriteNBT |
NBTCompoundList.addCompound(ReadableNBT comp) |
static ReadWriteNBT |
NBT.createNBTObject()
Create a new NBTContainer object and return it.
|
static ReadWriteNBT |
NBT.gameProfileToNBT(com.mojang.authlib.GameProfile profile)
It converts a GameProfile object to a ReadWriteNBT object
|
static ReadWriteNBT |
NBT.itemStackArrayToNBT(org.bukkit.inventory.ItemStack[] itemStacks)
It converts an array of ItemStacks into a ReadWriteNBT object
|
static ReadWriteNBT |
NBT.itemStackToNBT(org.bukkit.inventory.ItemStack itemStack)
It converts an ItemStack to a ReadWriteNBT object
|
static ReadWriteNBT |
NBT.parseNBT(String nbtString)
It takes a nbt json string, and returns a ReadWriteNBT object
|
static ReadWriteNBT |
NBT.readFile(File file)
Reads NBT data from the provided file.
|
static ReadWriteNBT |
NBT.readNBT(InputStream stream)
Reads in an NBT stream and returns a ReadWriteNBT object
|
ReadWriteNBT |
NBTCompound.resolveCompound(String key) |
ReadWriteNBT |
NBTCompound.resolveOrCreateCompound(String key) |
static ReadWriteNBT |
NBT.wrapNMSTag(Object nmsNbtTag)
Helper method for other developers using NMS.
|
Modifier and Type | Method and Description |
---|---|
void |
NBTCompoundList.add(int index,
ReadWriteNBT element) |
boolean |
NBTCompoundList.add(ReadWriteNBT empty)
Deprecated.
Please use addCompound!
|
protected Object |
NBTCompoundList.asTag(ReadWriteNBT object) |
NBTListCompound |
NBTCompoundList.set(int index,
ReadWriteNBT element) |
static void |
NBT.writeFile(File file,
ReadWriteNBT nbt)
Saves NBT data to the provided file.
|
Modifier and Type | Method and Description |
---|---|
static void |
NBT.modify(org.bukkit.block.BlockState blockState,
Consumer<ReadWriteNBT> consumer)
It takes a block state and a consumer, and then it creates a new
NBTTileEntity object with the block state, and then it passes that
NBTTileEntity object to the consumer
|
static <T> T |
NBT.modify(org.bukkit.block.BlockState blockState,
Function<ReadWriteNBT,T> function)
It takes a block state and a function that takes a ReadWriteNBT and returns a
generic type T.
|
static void |
NBT.modify(org.bukkit.entity.Entity entity,
Consumer<ReadWriteNBT> consumer)
It takes an entity and a function that takes a ReadWriteNBT and applies the
function to the entity
|
static <T> T |
NBT.modify(org.bukkit.entity.Entity entity,
Function<ReadWriteNBT,T> function)
It takes an entity and a function that takes a ReadWriteNBT and returns a
generic type T.
|
static void |
NBT.modifyComponents(org.bukkit.inventory.ItemStack item,
Consumer<ReadWriteNBT> consumer)
It takes an ItemStack and a Consumer<ReadWriteNBT>, and then applies
the Consumer to the ItemStacks Components as NBT.
|
static <T> T |
NBT.modifyComponents(org.bukkit.inventory.ItemStack item,
Function<ReadWriteNBT,T> function)
It takes an ItemStack and a Consumer<ReadWriteNBT>, and then applies
the Consumer to the ItemStacks Components as NBT.
|
static void |
NBT.modifyPersistentData(org.bukkit.block.BlockState blockState,
Consumer<ReadWriteNBT> consumer)
It takes a block state and a consumer, and then it calls the consumer with
the persistent data container of the block entity
|
static <T> T |
NBT.modifyPersistentData(org.bukkit.block.BlockState blockState,
Function<ReadWriteNBT,T> function)
It takes a block state and a function that takes a ReadWriteNBT of the block
entities persistent data and returns a generic type T.
|
static void |
NBT.modifyPersistentData(org.bukkit.entity.Entity entity,
Consumer<ReadWriteNBT> consumer)
It allows you to modify the persistent data of an entity without any return
value
|
static <T> T |
NBT.modifyPersistentData(org.bukkit.entity.Entity entity,
Function<ReadWriteNBT,T> function)
It takes an entity and a function that takes a ReadWriteNBT from the entities
persistent data and returns a generic type T.
|
Modifier and Type | Field and Description |
---|---|
static NBTHandler<ReadWriteNBT> |
NBTHandlers.STORE_READWRITE_TAG |
Modifier and Type | Interface and Description |
---|---|
interface |
NBTFileHandle |
interface |
ReadWriteItemNBT |
Modifier and Type | Method and Description |
---|---|
ReadWriteNBT |
ReadWriteNBTCompoundList.addCompound()
Adds a new compound tag to the current compound tag
|
ReadWriteNBT |
ReadWriteNBTCompoundList.addCompound(ReadableNBT comp)
Adds a copy of the Compound to the end of the List and returns it.
|
ReadWriteNBT |
ReadWriteNBT.getCompound(String name) |
ReadWriteNBT |
ReadWriteNBT.getOrCreateCompound(String name)
The same as addCompound, just with a name that better reflects what it does
|
ReadWriteNBT |
ReadWriteNBTCompoundList.remove(int i)
Removes the element at the specified position in this list
|
ReadWriteNBT |
ReadWriteNBT.resolveCompound(String key) |
ReadWriteNBT |
ReadWriteNBT.resolveOrCreateCompound(String key)
Returns the resolved and creates compounds as required.
|
Modifier and Type | Method and Description |
---|---|
ReadableNBTList<ReadWriteNBT> |
ReadableNBT.getCompoundList(String name) |
Modifier and Type | Method and Description |
---|---|
void |
NBTHandler.set(ReadWriteNBT nbt,
String key,
T value) |
Modifier and Type | Method and Description |
---|---|
boolean |
ReadWriteNBTCompoundList.removeIf(Predicate<? super ReadWriteNBT> pred)
Removes all elements of this list that satisfy the given predicate
|
Modifier and Type | Method and Description |
---|---|
static ReadWriteNBT |
DataFixerUtil.fixUpItemData(ReadWriteNBT nbt,
int fromVersion,
int toVersion) |
static ReadWriteNBT |
GameprofileUtil.writeGameProfile(ReadWriteNBT arg,
com.mojang.authlib.GameProfile gameProfile) |
Modifier and Type | Method and Description |
---|---|
static ReadWriteNBT |
DataFixerUtil.fixUpItemData(ReadWriteNBT nbt,
int fromVersion,
int toVersion) |
static ReadWriteNBT |
GameprofileUtil.writeGameProfile(ReadWriteNBT arg,
com.mojang.authlib.GameProfile gameProfile) |
Constructor and Description |
---|
ProxyBuilder(ReadWriteNBT nbt,
Class<T> target) |
Copyright © 2015–2024 tr7zw. All rights reserved.