Skip to content

Commit

Permalink
feat(api: Identity implements Identified
Browse files Browse the repository at this point in the history
  • Loading branch information
kashike committed Oct 10, 2023
1 parent 4264c5d commit 7d8c9b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/src/main/java/net/kyori/adventure/identity/Identity.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* @since 4.0.0
* @sinceMinecraft 1.16
*/
public interface Identity extends Examinable {
public interface Identity extends Examinable, Identified {
/**
* A pointer to a name.
*
Expand Down Expand Up @@ -99,6 +99,11 @@ public interface Identity extends Examinable {
*/
@NotNull UUID uuid();

@Override
default @NotNull Identity identity() {
return this;
}

@Override
default @NotNull Stream<? extends ExaminableProperty> examinableProperties() {
return Stream.of(ExaminableProperty.of("uuid", this.uuid()));
Expand Down

0 comments on commit 7d8c9b5

Please sign in to comment.