mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-03 01:10:37 +01:00
2365b308c8
Upstream has released updates that appears to apply and compile correctly. This update has been tested to ensure that World Conversion still occurs correctly. Bukkit Changes: 0812ce2c SPIGOT-4397: isChunkGenerated API CraftBukkit Changes:4824655c
SPIGOT-4398: Upgrade to ASM 6.2.1 for better Java 11 supporteea43870
MC-134115: Fix issues converting tile entities1a7f2d10
SPIGOT-4397: isChunkGenerated API40aed54d
SPIGOT-4396: Improve vehicle movement Spigot Changes: f6a273b1 Rebuild patches
31 lines
966 B
Diff
31 lines
966 B
Diff
From 9068935d9c8fc8d37ca47ceeef6e752c5ef84ecf Mon Sep 17 00:00:00 2001
|
|
From: Brokkonaut <hannos17@gmx.de>
|
|
Date: Tue, 3 Jul 2018 16:07:16 +0200
|
|
Subject: [PATCH] Add World.getEntity(UUID) API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
|
index 673f1a3eb..51cf0bfe8 100644
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
+++ b/src/main/java/org/bukkit/World.java
|
|
@@ -699,6 +699,16 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
*/
|
|
public Collection<Entity> getNearbyEntities(Location location, double x, double y, double z);
|
|
|
|
+ // Paper start - getEntity by UUID API
|
|
+ /**
|
|
+ * Gets an entity in this world 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 Entity getEntity(UUID uuid);
|
|
+ // Paper end
|
|
+
|
|
/**
|
|
* Gets the unique name of this world
|
|
*
|
|
--
|
|
2.19.0
|
|
|