Skip to content

Commit

Permalink
Merge pull request #985 from KyoriPowered/feature/identity-identified
Browse files Browse the repository at this point in the history
feat(api): Identity implements Identified
  • Loading branch information
kashike authored Oct 10, 2023
2 parents 4264c5d + 18c39c4 commit f0735a5
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 f0735a5

Please sign in to comment.