Adventure
Co-authored-by: zml <zml@stellardrift.ca> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Yannick Lamprecht <yannicklamprecht@live.de>
This commit is contained in:
@@ -5,7 +5,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
/**
|
||||
* Represents an object which has a {@link NamespacedKey} attached to it.
|
||||
*/
|
||||
public interface Keyed {
|
||||
public interface Keyed extends net.kyori.adventure.key.Keyed { // Paper -- extend Adventure Keyed
|
||||
|
||||
/**
|
||||
* Return the namespaced identifier for this object.
|
||||
@@ -14,4 +14,16 @@ public interface Keyed {
|
||||
*/
|
||||
@NotNull
|
||||
NamespacedKey getKey();
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Returns the unique identifier for this object.
|
||||
*
|
||||
* @return this object's key
|
||||
*/
|
||||
@Override
|
||||
default net.kyori.adventure.key.@NotNull Key key() {
|
||||
return this.getKey();
|
||||
}
|
||||
// Paper end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user