diff --git a/v2-api/allclasses-frame.html b/v2-api/allclasses-frame.html index ab4247c27..70b429d20 100644 --- a/v2-api/allclasses-frame.html +++ b/v2-api/allclasses-frame.html @@ -2,7 +2,7 @@ - + All Classes (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/allclasses-noframe.html b/v2-api/allclasses-noframe.html index a37e405d8..ec96dd32a 100644 --- a/v2-api/allclasses-noframe.html +++ b/v2-api/allclasses-noframe.html @@ -2,7 +2,7 @@ - + All Classes (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/constant-values.html b/v2-api/constant-values.html index 6e319963c..bb5cb5fe8 100644 --- a/v2-api/constant-values.html +++ b/v2-api/constant-values.html @@ -2,7 +2,7 @@ - + Constant Field Values (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBT.html b/v2-api/de/tr7zw/changeme/nbtapi/NBT.html index 45566a376..49bb23601 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBT.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBT.html @@ -2,7 +2,7 @@ - + NBT (item-nbt-api 2.12.5-SNAPSHOT API) @@ -19,7 +19,7 @@ catch(err) { } //--> -var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9}; +var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -340,13 +340,29 @@

Method Summary

static void +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 +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 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 modifyPersistentData(org.bukkit.block.BlockState blockState, Function<ReadWriteNBT,T> function) @@ -354,7 +370,7 @@

Method Summary

entities persistent data and returns a generic type T. - + static void modifyPersistentData(org.bukkit.entity.Entity entity, Consumer<ReadWriteNBT> consumer) @@ -362,7 +378,7 @@

Method Summary

value - + static <T> T modifyPersistentData(org.bukkit.entity.Entity entity, Function<ReadWriteNBT,T> function) @@ -370,33 +386,33 @@

Method Summary

persistent data and returns a generic type T. - + static ReadWriteNBT parseNBT(String nbtString)
It takes a nbt json string, and returns a ReadWriteNBT object
- + static <T extends NBTProxy>
T
readNbt(org.bukkit.block.BlockState blockState, Class<T> wrapper)
Create a read only proxy class for NBT, given an annotated interface.
- + static <T extends NBTProxy>
T
readNbt(org.bukkit.entity.Entity entity, Class<T> wrapper)
Create a read only proxy class for NBT, given an annotated interface.
- + static ReadableNBT readNbt(org.bukkit.inventory.ItemStack item)
Get a read only instance of the items NBT.
- + static <T extends NBTProxy>
T
readNbt(org.bukkit.inventory.ItemStack item, Class<T> wrapper) @@ -648,6 +664,44 @@

modify

+ + + + + + + + diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBTBlock.html b/v2-api/de/tr7zw/changeme/nbtapi/NBTBlock.html index e0fe679f3..64c215421 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBTBlock.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBTBlock.html @@ -2,7 +2,7 @@ - + NBTBlock (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBTChunk.html b/v2-api/de/tr7zw/changeme/nbtapi/NBTChunk.html index d0d7c18d4..0abf057d6 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBTChunk.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBTChunk.html @@ -2,7 +2,7 @@ - + NBTChunk (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBTCompound.html b/v2-api/de/tr7zw/changeme/nbtapi/NBTCompound.html index 04c5bad5e..403466a1a 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBTCompound.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBTCompound.html @@ -2,7 +2,7 @@ - + NBTCompound (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBTCompoundList.html b/v2-api/de/tr7zw/changeme/nbtapi/NBTCompoundList.html index f5571a01d..f3e77b8b0 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBTCompoundList.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBTCompoundList.html @@ -2,7 +2,7 @@ - + NBTCompoundList (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBTContainer.html b/v2-api/de/tr7zw/changeme/nbtapi/NBTContainer.html index 5638e0f43..885179525 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBTContainer.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBTContainer.html @@ -2,7 +2,7 @@ - + NBTContainer (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBTDoubleList.html b/v2-api/de/tr7zw/changeme/nbtapi/NBTDoubleList.html index e936b8169..b544ed13c 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBTDoubleList.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBTDoubleList.html @@ -2,7 +2,7 @@ - + NBTDoubleList (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBTEntity.html b/v2-api/de/tr7zw/changeme/nbtapi/NBTEntity.html index 892144b31..076dbed5a 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBTEntity.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBTEntity.html @@ -2,7 +2,7 @@ - + NBTEntity (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBTFile.html b/v2-api/de/tr7zw/changeme/nbtapi/NBTFile.html index 861794d00..5a246c78a 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBTFile.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBTFile.html @@ -2,7 +2,7 @@ - + NBTFile (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBTFloatList.html b/v2-api/de/tr7zw/changeme/nbtapi/NBTFloatList.html index 6d1a4c54d..cf14ff187 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBTFloatList.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBTFloatList.html @@ -2,7 +2,7 @@ - + NBTFloatList (item-nbt-api 2.12.5-SNAPSHOT API) diff --git a/v2-api/de/tr7zw/changeme/nbtapi/NBTGameProfile.html b/v2-api/de/tr7zw/changeme/nbtapi/NBTGameProfile.html index 0a04d8a24..4ddd872dc 100644 --- a/v2-api/de/tr7zw/changeme/nbtapi/NBTGameProfile.html +++ b/v2-api/de/tr7zw/changeme/nbtapi/NBTGameProfile.html @@ -2,7 +2,7 @@ - + NBTGameProfile (item-nbt-api 2.12.5-SNAPSHOT API) @@ -19,8 +19,8 @@ catch(err) { } //--> -var methods = {"i0":9,"i1":9}; -var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; +var methods = {"i0":41,"i1":41}; +var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; @@ -142,7 +142,7 @@

Constructor Summary

Method Summary

- + @@ -150,13 +150,13 @@

Method Summary

All Methods Static Methods Concrete Methods All Methods Static Methods Concrete Methods Deprecated Methods 
Modifier and Type Method and Description
static com.mojang.authlib.GameProfile fromNBT(NBTCompound compound) -
Reconstructs a GameProfile from a NBTCompound
+
Deprecated. 
static NBTCompound toNBT(com.mojang.authlib.GameProfile profile) -
Convert a GameProfile to NBT.
+
Deprecated. 
@@ -204,7 +204,9 @@

Method Detail