| Package | Description |
|---|---|
| org.bukkit.attribute | |
| org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks. |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
AttributeInstance.getAttribute()
The attribute pertaining to this instance.
|
Attribute |
AttributeInstance.getAttribute()
The attribute pertaining to this instance.
|
static Attribute |
Attribute.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Attribute |
Attribute.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Attribute[] |
Attribute.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static Attribute[] |
Attribute.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeInstance |
Attributable.getAttribute(Attribute attribute)
Gets the specified attribute instance from the object.
|
AttributeInstance |
Attributable.getAttribute(Attribute attribute)
Gets the specified attribute instance from the object.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.Multimap<Attribute,AttributeModifier> |
ItemMeta.getAttributeModifiers()
Return an immutable copy of all Attributes and
their modifiers in this ItemMeta.
|
com.google.common.collect.Multimap<Attribute,AttributeModifier> |
ItemMeta.getAttributeModifiers()
Return an immutable copy of all Attributes and
their modifiers in this ItemMeta.
|
com.google.common.collect.Multimap<Attribute,AttributeModifier> |
ItemMeta.getAttributeModifiers(EquipmentSlot slot)
|
com.google.common.collect.Multimap<Attribute,AttributeModifier> |
ItemMeta.getAttributeModifiers(EquipmentSlot slot)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ItemMeta.addAttributeModifier(Attribute attribute,
AttributeModifier modifier)
Add an Attribute and it's Modifier.
|
boolean |
ItemMeta.addAttributeModifier(Attribute attribute,
AttributeModifier modifier)
Add an Attribute and it's Modifier.
|
Collection<AttributeModifier> |
ItemMeta.getAttributeModifiers(Attribute attribute)
Return an immutable copy of all
AttributeModifiers
for a given Attribute |
Collection<AttributeModifier> |
ItemMeta.getAttributeModifiers(Attribute attribute)
Return an immutable copy of all
AttributeModifiers
for a given Attribute |
boolean |
ItemMeta.removeAttributeModifier(Attribute attribute)
Remove all
AttributeModifiers associated with the given
Attribute. |
boolean |
ItemMeta.removeAttributeModifier(Attribute attribute)
Remove all
AttributeModifiers associated with the given
Attribute. |
boolean |
ItemMeta.removeAttributeModifier(Attribute attribute,
AttributeModifier modifier)
Remove a specific
Attribute and AttributeModifier. |
boolean |
ItemMeta.removeAttributeModifier(Attribute attribute,
AttributeModifier modifier)
Remove a specific
Attribute and AttributeModifier. |
| Modifier and Type | Method and Description |
|---|---|
void |
ItemMeta.setAttributeModifiers(com.google.common.collect.Multimap<Attribute,AttributeModifier> attributeModifiers)
Set all
Attributes and their AttributeModifiers. |
void |
ItemMeta.setAttributeModifiers(com.google.common.collect.Multimap<Attribute,AttributeModifier> attributeModifiers)
Set all
Attributes and their AttributeModifiers. |
Copyright © 2022. All rights reserved.