Modifier and Type | Class and Description |
---|---|
class |
ByteArrayTag
The
TAG_Byte_Array tag. |
class |
ByteTag
The
TAG_Byte tag. |
class |
CompoundTag
The
TAG_Compound tag. |
class |
DoubleTag
The
TAG_Double tag. |
class |
EndTag
The
TAG_End tag. |
class |
FloatTag
The
TAG_Float tag. |
class |
IntArrayTag
The
TAG_Int_Array tag. |
class |
IntTag
The
TAG_Int tag. |
class |
ListTag
The
TAG_List tag. |
class |
LongTag
The
TAG_Long tag. |
class |
PlaceholderDoubleTag
The
TAG_Double tag. |
class |
PlaceholderFloatTag
The
TAG_Double tag. |
class |
PlaceholderIntTag
The
TAG_Double tag. |
class |
PlaceholderStringTag
The
TAG_Double tag. |
class |
ShortTag
The
TAG_Short tag. |
class |
StringTag
The
TAG_String tag. |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Tag> |
CompoundTag.value |
Modifier and Type | Method and Description |
---|---|
static <T extends Tag> |
ListTagBuilder.createWith(T... entries)
Create a new builder instance.
|
<T extends Tag> |
ListTag.getList(int index,
Class<T> listType)
Get a list of tags named with the given index.
|
<T extends Tag> |
CompoundTag.getList(String key,
Class<T> listType)
Get a list of tags named with the given key.
|
Modifier and Type | Method and Description |
---|---|
Tag |
NBTSerializer.deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
Tag |
ListTag.getIfExists(int index)
Get the tag if it exists at the given index.
|
Tag |
NamedTag.getTag()
Get the tag.
|
Modifier and Type | Method and Description |
---|---|
static Class<? extends Tag> |
NBTConstants.getClassFromType(int id)
Convert a type ID to its corresponding
Tag class. |
List<Tag> |
ListTag.getList(int index)
Get a list of tags named with the given index.
|
List<Tag> |
CompoundTag.getList(String key)
Get a list of tags named with the given key.
|
Class<? extends Tag> |
ListTag.getType()
Gets the type of item in this list.
|
static Class<? extends Tag> |
NBTUtils.getTypeClass(int type)
Gets the class of a type of tag.
|
Map<String,Tag> |
CompoundTag.getValue() |
List<Tag> |
ListTag.getValue() |
Modifier and Type | Method and Description |
---|---|
ListTagBuilder |
ListTagBuilder.add(Tag value)
Add the given tag.
|
static <T extends Tag> |
ListTagBuilder.createWith(T... entries)
Create a new builder instance.
|
CompoundTagBuilder |
CompoundTagBuilder.put(String key,
Tag value)
Put the given key and tag into the compound tag.
|
com.google.gson.JsonElement |
NBTSerializer.serialize(Tag src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
Modifier and Type | Method and Description |
---|---|
ListTagBuilder |
ListTagBuilder.addAll(Collection<? extends Tag> value)
Add all the tags in the given list.
|
static ListTagBuilder |
ListTagBuilder.create(Class<? extends Tag> type)
Create a new builder instance.
|
static int |
NBTUtils.getTypeCode(Class<? extends Tag> clazz)
Gets the type code of a tag class.
|
static String |
NBTUtils.getTypeName(Class<? extends Tag> clazz)
Gets the type name of a tag.
|
CompoundTagBuilder |
CompoundTagBuilder.putAll(Map<String,? extends Tag> value)
Put all the entries from the given map into this map.
|
ListTag |
ListTag.setValue(List<Tag> list)
Create a new list tag with this tag's name and type.
|
CompoundTag |
CompoundTag.setValue(Map<String,Tag> value)
Return a new compound tag with the given values.
|
Constructor and Description |
---|
NamedTag(String name,
Tag tag)
Create a new named tag.
|
Constructor and Description |
---|
CompoundTag(Map<String,Tag> value)
Creates the tag with an empty name.
|
ListTag(Class<? extends Tag> type,
List<? extends Tag> value)
Creates the tag with an empty name.
|
ListTag(Class<? extends Tag> type,
List<? extends Tag> value)
Creates the tag with an empty name.
|
ListTagBuilder(Class<? extends Tag> type)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
CompoundTag |
VolatileCodeEnabled_v1_16_R2.createCompoundTag(Map<String,Tag> value) |
CompoundTag |
VolatileCodeEnabled_v1_16_R1.createCompoundTag(Map<String,Tag> value) |
default CompoundTag |
VolatileCodeHandler.createCompoundTag(Map<String,Tag> value) |
CompoundTag |
VolatileCodeEnabled_v1_14_R1.createCompoundTag(Map<String,Tag> value) |
CompoundTag |
VolatileCodeEnabled_v1_13_R2.createCompoundTag(Map<String,Tag> value) |
CompoundTag |
VolatileCodeEnabled_v1_12_R1.createCompoundTag(Map<String,Tag> value) |
CompoundTag |
VolatileCodeEnabled_v1_15_R1.createCompoundTag(Map<String,Tag> value) |
Modifier and Type | Method and Description |
---|---|
AbstractEntity |
VolatileEntityHandlerDisabled.addNBTData(AbstractEntity entity,
String key,
Tag value) |
org.bukkit.inventory.ItemStack |
VolatileItemHandlerDisabled.addNBTData(org.bukkit.inventory.ItemStack itemStack,
String key,
Tag value) |
Modifier and Type | Method and Description |
---|---|
AbstractEntity |
VolatileEntityHandler.addNBTData(AbstractEntity entity,
String key,
Tag value) |
org.bukkit.inventory.ItemStack |
VolatileItemHandler.addNBTData(org.bukkit.inventory.ItemStack itemStack,
String key,
Tag value) |
Modifier and Type | Class and Description |
---|---|
class |
CompoundTag_v1_12_R1 |
Modifier and Type | Method and Description |
---|---|
AbstractEntity |
VolatileEntityHandler_v1_12_R1.addNBTData(AbstractEntity entity,
String key,
Tag value) |
org.bukkit.inventory.ItemStack |
VolatileItemHandler_v1_12_R1.addNBTData(org.bukkit.inventory.ItemStack itemStack,
String key,
Tag value) |
Constructor and Description |
---|
CompoundTag_v1_12_R1(Map<String,Tag> value)
Creates the tag with an empty name.
|
Modifier and Type | Class and Description |
---|---|
class |
CompoundTag_v1_13_R2 |
Modifier and Type | Method and Description |
---|---|
AbstractEntity |
VolatileEntityHandler_v1_13_R2.addNBTData(AbstractEntity entity,
String key,
Tag value) |
org.bukkit.inventory.ItemStack |
VolatileItemHandler_v1_13_R2.addNBTData(org.bukkit.inventory.ItemStack itemStack,
String key,
Tag value) |
Constructor and Description |
---|
CompoundTag_v1_13_R2(Map<String,Tag> value)
Creates the tag with an empty name.
|
Modifier and Type | Class and Description |
---|---|
class |
CompoundTag_v1_14_R1 |
Modifier and Type | Method and Description |
---|---|
AbstractEntity |
VolatileEntityHandler_v1_14_R1.addNBTData(AbstractEntity entity,
String key,
Tag value) |
org.bukkit.inventory.ItemStack |
VolatileItemHandler_v1_14_R1.addNBTData(org.bukkit.inventory.ItemStack itemStack,
String key,
Tag value) |
Constructor and Description |
---|
CompoundTag_v1_14_R1(Map<String,Tag> value)
Creates the tag with an empty name.
|
Modifier and Type | Class and Description |
---|---|
class |
CompoundTag_v1_15_R1 |
Modifier and Type | Method and Description |
---|---|
AbstractEntity |
VolatileEntityHandler_v1_15_R1.addNBTData(AbstractEntity entity,
String key,
Tag value) |
org.bukkit.inventory.ItemStack |
VolatileItemHandler_v1_15_R1.addNBTData(org.bukkit.inventory.ItemStack itemStack,
String key,
Tag value) |
Constructor and Description |
---|
CompoundTag_v1_15_R1(Map<String,Tag> value)
Creates the tag with an empty name.
|
Modifier and Type | Class and Description |
---|---|
class |
CompoundTag_v1_16_R1 |
Modifier and Type | Method and Description |
---|---|
AbstractEntity |
VolatileEntityHandler_v1_16_R1.addNBTData(AbstractEntity entity,
String key,
Tag value) |
org.bukkit.inventory.ItemStack |
VolatileItemHandler_v1_16_R1.addNBTData(org.bukkit.inventory.ItemStack itemStack,
String key,
Tag value) |
Constructor and Description |
---|
CompoundTag_v1_16_R1(Map<String,Tag> value)
Creates the tag with an empty name.
|
Modifier and Type | Class and Description |
---|---|
class |
CompoundTag_v1_16_R2 |
Modifier and Type | Method and Description |
---|---|
AbstractEntity |
VolatileEntityHandler_v1_16_R2.addNBTData(AbstractEntity entity,
String key,
Tag value) |
org.bukkit.inventory.ItemStack |
VolatileItemHandler_v1_16_R2.addNBTData(org.bukkit.inventory.ItemStack itemStack,
String key,
Tag value) |
Constructor and Description |
---|
CompoundTag_v1_16_R2(Map<String,Tag> value)
Creates the tag with an empty name.
|
Copyright © 2020. All rights reserved.