From b91a8f03898988702fb2fcd702b8687605b5e88b Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 7 Jun 2011 04:21:11 -0400 Subject: [PATCH] Added UniqueId to entities. Thanks Afforess! By: EvilSeph --- paper-api/src/main/java/org/bukkit/entity/Entity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index 4d8e7b537c..d8c59cc60f 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/src/main/java/org/bukkit/entity/Entity.java @@ -7,6 +7,7 @@ import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.util.Vector; import java.util.List; +import java.util.UUID; /** * Represents a base entity in the world @@ -182,4 +183,9 @@ public interface Entity { */ public EntityDamageEvent getLastDamageCause(); + /** + * Returns a unique and persistent id for this entity + * @return unique id + */ + public UUID getUniqueId(); }