mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
Added UniqueId to entities. Thanks Afforess!
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
parent
c6821f93c4
commit
b91a8f0389
1 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,7 @@ import org.bukkit.event.entity.EntityDamageEvent;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a base entity in the world
|
* Represents a base entity in the world
|
||||||
|
@ -182,4 +183,9 @@ public interface Entity {
|
||||||
*/
|
*/
|
||||||
public EntityDamageEvent getLastDamageCause();
|
public EntityDamageEvent getLastDamageCause();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a unique and persistent id for this entity
|
||||||
|
* @return unique id
|
||||||
|
*/
|
||||||
|
public UUID getUniqueId();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue