mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-29 11:23:52 -07:00
Added UniqueId to entities. Thanks Afforess!
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user