14
paper-api/src/main/java/org/bukkit/Keyed.java
Normal file
14
paper-api/src/main/java/org/bukkit/Keyed.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package org.bukkit;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
NamespacedKey getKey();
|
||||
}
|
||||
Reference in New Issue
Block a user