From a9f87403d15e3dfefd0f7e769eff3a1dd7f5db50 Mon Sep 17 00:00:00 2001 From: Cody <149296239+notdevcody@users.noreply.github.com> Date: Sat, 30 Dec 2023 00:28:38 +0000 Subject: [PATCH] Add back getUniqueId to Bukkit's Entity (#76) --- src/main/java/org/bukkit/entity/Entity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index c6018a45..6ae2a782 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/src/main/java/org/bukkit/entity/Entity.java @@ -166,4 +166,10 @@ public interface Entity { * @return the last known {@link EntityDamageEvent} or null if hitherto unharmed */ public EntityDamageEvent getLastDamageCause(); + + /** + * Returns a unique and persistent id for this entity + * @return unique id + */ + public UUID getUniqueId(); }