Package | Description |
---|---|
org.bukkit.inventory.meta.tags |
Modifier and Type | Class and Description |
---|---|
static class |
ItemTagType.PrimitiveTagType<T>
A default implementation that simply exists to pass on the retrieved or
inserted value to the next layer.
|
Modifier and Type | Field and Description |
---|---|
static ItemTagType<Byte,Byte> |
ItemTagType.BYTE |
static ItemTagType<byte[],byte[]> |
ItemTagType.BYTE_ARRAY |
static ItemTagType<Double,Double> |
ItemTagType.DOUBLE |
static ItemTagType<Float,Float> |
ItemTagType.FLOAT |
static ItemTagType<Integer,Integer> |
ItemTagType.INTEGER |
static ItemTagType<int[],int[]> |
ItemTagType.INTEGER_ARRAY |
static ItemTagType<Long,Long> |
ItemTagType.LONG |
static ItemTagType<long[],long[]> |
ItemTagType.LONG_ARRAY |
static ItemTagType<Short,Short> |
ItemTagType.SHORT |
static ItemTagType<String,String> |
ItemTagType.STRING |
static ItemTagType<CustomItemTagContainer,CustomItemTagContainer> |
ItemTagType.TAG_CONTAINER |
Modifier and Type | Method and Description |
---|---|
<T,Z> Z |
CustomItemTagContainer.getCustomTag(NamespacedKey key,
ItemTagType<T,Z> type)
Returns the custom tag's value that is stored on the item.
|
<T,Z> boolean |
CustomItemTagContainer.hasCustomTag(NamespacedKey key,
ItemTagType<T,Z> type)
Returns if the item meta has a custom tag registered matching the
provided parameters.
|
<T,Z> void |
CustomItemTagContainer.setCustomTag(NamespacedKey key,
ItemTagType<T,Z> type,
Z value)
Stores a custom value on the
ItemMeta . |
Copyright © 2021. All rights reserved.