Added UniqueId to entities. Thanks Afforess!

By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
CraftBukkit/Spigot 2011-06-07 04:21:33 -04:00
parent 08d7a5ecb0
commit 114ebd7a74

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;
}
}