From 18c39c4dc35ebd77b5bfca4af8f37083223d1643 Mon Sep 17 00:00:00 2001 From: Riley Park Date: Tue, 10 Oct 2023 12:24:25 -0700 Subject: [PATCH] feat(api): Identity implements Identified --- .../main/java/net/kyori/adventure/identity/Identity.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/net/kyori/adventure/identity/Identity.java b/api/src/main/java/net/kyori/adventure/identity/Identity.java index d278ad0af..433eb10ce 100644 --- a/api/src/main/java/net/kyori/adventure/identity/Identity.java +++ b/api/src/main/java/net/kyori/adventure/identity/Identity.java @@ -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. * @@ -99,6 +99,11 @@ public interface Identity extends Examinable { */ @NotNull UUID uuid(); + @Override + default @NotNull Identity identity() { + return this; + } + @Override default @NotNull Stream examinableProperties() { return Stream.of(ExaminableProperty.of("uuid", this.uuid()));