Commits
md_5 authored a5be7e19c2d
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 + | } |