Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.attribute |
Classes relevant to attributes.
|
org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks . |
Modifier and Type | Field and Description |
---|---|
static Registry<Attribute> |
Registry.ATTRIBUTE
Attribute.
|
Modifier and Type | Method and Description |
---|---|
@NotNull 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.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
@Nullable AttributeInstance |
Attributable.getAttribute(@NotNull Attribute attribute)
Gets the specified attribute instance from the object.
|
void |
Attributable.registerAttribute(@NotNull Attribute attribute)
Registers a generic attribute to that attributable instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ItemMeta.addAttributeModifier(@NotNull Attribute attribute,
@NotNull AttributeModifier modifier)
Add an Attribute and it's Modifier.
|
@Nullable Collection<AttributeModifier> |
ItemMeta.getAttributeModifiers(@NotNull Attribute attribute)
Return an immutable copy of all
AttributeModifier s
for a given Attribute |
boolean |
ItemMeta.removeAttributeModifier(@NotNull Attribute attribute)
Remove all
AttributeModifier s associated with the given
Attribute . |
boolean |
ItemMeta.removeAttributeModifier(@NotNull Attribute attribute,
@NotNull AttributeModifier modifier)
Remove a specific
Attribute and AttributeModifier . |
Copyright © 2021. All rights reserved.