Commits

md_5 authored a5be7e19c2d
Add Attribute and AttributeModifier API.

Thanks to __0x277F and Meeh on #spigot-dev for implementation advice.
No tags

src/main/java/org/bukkit/attribute/Attributable.java

Added
1 +package org.bukkit.attribute;
2 +
3 +/**
4 + * Represents an object which may contain attributes.
5 + */
6 +public interface Attributable {
7 +
8 + /**
9 + * Gets the specified attribute instance from the object. This instance will
10 + * be backed directly to the object and any changes will be visible at once.
11 + *
12 + * @param attribute the attribute to get
13 + * @return the attribute instance or null if not applicable to this object
14 + */
15 + AttributeInstance getAttribute(Attribute attribute);
16 +}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut