SPIGOT-826: Add method to retrieve entity by UUID
By: Zach Brown <zach.brown@destroystokyo.com>
This commit is contained in:
parent
72f65b2488
commit
596839ddb5
2 changed files with 18 additions and 0 deletions
|
@ -935,6 +935,14 @@ public interface Server extends PluginMessageRecipient {
|
|||
*/
|
||||
BossBar createBossBar(String title, BarColor color, BarStyle style, BarFlag ...flags);
|
||||
|
||||
/**
|
||||
* Gets an entity on the server by its UUID
|
||||
*
|
||||
* @param uuid the UUID of the entity
|
||||
* @return the entity with the given UUID, or null if it isn't found
|
||||
*/
|
||||
Entity getEntity(UUID uuid);
|
||||
|
||||
/**
|
||||
* @see UnsafeValues
|
||||
* @return the unsafe values instance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue