2017-05-14 12:00:00 +10:00
|
|
|
package org.bukkit;
|
|
|
|
|
2019-03-13 17:42:57 +11:00
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
|
2017-05-14 12:00:00 +10:00
|
|
|
/**
|
|
|
|
* Represents an object which has a {@link NamespacedKey} attached to it.
|
|
|
|
*/
|
|
|
|
public interface Keyed {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the namespaced identifier for this object.
|
|
|
|
*
|
|
|
|
* @return this object's key
|
|
|
|
*/
|
2019-03-13 17:42:57 +11:00
|
|
|
@NotNull
|
2017-05-14 12:00:00 +10:00
|
|
|
NamespacedKey getKey();
|
|
|
|
}
|