mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 23:01:01 +01:00
Added UniqueId to entities. Thanks Afforess!
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
parent
08d7a5ecb0
commit
114ebd7a74
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue