Add getEntity by UUID API
This commit is contained in:
parent
e007d80c16
commit
443a949bac
2 changed files with 101 additions and 0 deletions
45
Spigot-API-Patches/Add-getEntity-by-UUID-API.patch
Normal file
45
Spigot-API-Patches/Add-getEntity-by-UUID-API.patch
Normal file
|
@ -0,0 +1,45 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: DemonWav <demonwav@gmail.com>
|
||||
Date: Wed, 30 Mar 2016 01:19:51 -0500
|
||||
Subject: [PATCH] Add getEntity by UUID API
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/Bukkit.java
|
||||
+++ b/src/main/java/org/bukkit/Bukkit.java
|
||||
@@ -0,0 +0,0 @@ public final class Bukkit {
|
||||
public static void reloadPermissions() {
|
||||
server.reloadPermissions();
|
||||
}
|
||||
+
|
||||
+ /**
|
||||
+ * Find an entity on the server by its UUID
|
||||
+ *
|
||||
+ * @param uuid The UUID of the entity
|
||||
+ * @return The entity that is identified by the given UUID, or null if one isn't found
|
||||
+ */
|
||||
+ public static Entity getEntity(UUID uuid) {
|
||||
+ return server.getEntity(uuid);
|
||||
+ }
|
||||
// Paper end
|
||||
|
||||
public static Server.Spigot spigot()
|
||||
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/Server.java
|
||||
+++ b/src/main/java/org/bukkit/Server.java
|
||||
@@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient {
|
||||
Spigot spigot();
|
||||
|
||||
void reloadPermissions(); // Paper
|
||||
+
|
||||
+ /**
|
||||
+ * Find an entity on the server by its UUID
|
||||
+ *
|
||||
+ * @param uuid The UUID of the entity
|
||||
+ * @return The entity that is identified by the given UUID, or null if one isn't found
|
||||
+ */
|
||||
+ Entity getEntity(UUID uuid); // Paper
|
||||
}
|
||||
--
|
Loading…
Add table
Add a link
Reference in a new issue