Added UniqueId to entities. Thanks Afforess!

This commit is contained in:
EvilSeph
2011-06-07 04:21:33 -04:00
parent 95c19d5f22
commit d33c06ead2
2 changed files with 20 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.util.Vector;
import java.util.List;
import java.util.UUID;
public abstract class CraftEntity implements org.bukkit.entity.Entity {
protected final CraftServer server;
@@ -264,4 +265,8 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
public EntityDamageEvent getLastDamageCause() {
return lastDamageEvent;
}
public UUID getUniqueId() {
return getHandle().uniqueId;
}
}