mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-20 05:14:15 +00:00
SPIGOT-826: Add method to retrieve entity by UUID
This commit is contained in:
parent
b91bded5b7
commit
59b32ee3f3
2 changed files with 18 additions and 0 deletions
|
@ -1141,6 +1141,16 @@ public final class Bukkit {
|
|||
return server.createBossBar(title, color, style, 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
|
||||
*/
|
||||
public static Entity getEntity(UUID uuid) {
|
||||
return server.getEntity(uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see UnsafeValues
|
||||
* @return the unsafe values instance
|
||||
|
|
|
@ -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
Reference in a new issue