13
0
geforkt von Mirrors/Paper

SPIGOT-826: Add method to retrieve entity by UUID

By: Zach Brown <zach.brown@destroystokyo.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2017-01-03 22:40:31 -06:00
Ursprung 72f65b2488
Commit 596839ddb5
2 geänderte Dateien mit 18 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -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

Datei anzeigen

@ -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