aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0225-Clarify-the-Javadocs-for-Entity.getEntitySpawnReason.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0225-Clarify-the-Javadocs-for-Entity.getEntitySpawnReason.patch')
-rw-r--r--patches/api/0225-Clarify-the-Javadocs-for-Entity.getEntitySpawnReason.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/api/0225-Clarify-the-Javadocs-for-Entity.getEntitySpawnReason.patch b/patches/api/0225-Clarify-the-Javadocs-for-Entity.getEntitySpawnReason.patch
new file mode 100644
index 0000000000..094bcc1ce8
--- /dev/null
+++ b/patches/api/0225-Clarify-the-Javadocs-for-Entity.getEntitySpawnReason.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Aurora <[email protected]>
+Date: Sat, 3 Oct 2020 16:28:41 +0200
+Subject: [PATCH] Clarify the Javadocs for Entity.getEntitySpawnReason()
+
+
+diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
+index be83ba864e2b9df50275f0fcdb50dc57a955ebec..f9b2251dbb7c9fe7dccc0fd28b4c00881124b6f3 100644
+--- a/src/main/java/org/bukkit/entity/Entity.java
++++ b/src/main/java/org/bukkit/entity/Entity.java
+@@ -756,7 +756,7 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
+ }
+
+ /**
+- * @return The {@link org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason} that spawned this entity.
++ * @return The {@link org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason} that initially spawned this entity. <!-- Paper - added "initially" to clarify that the SpawnReason doesn't change after the Entity was initially spawned" -->
+ */
+ @NotNull
+ org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason getEntitySpawnReason();