aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0134-Add-PhantomPreSpawnEvent.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0134-Add-PhantomPreSpawnEvent.patch')
-rw-r--r--patches/api/0134-Add-PhantomPreSpawnEvent.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/patches/api/0134-Add-PhantomPreSpawnEvent.patch b/patches/api/0134-Add-PhantomPreSpawnEvent.patch
index 943f1561db..aac9b35672 100644
--- a/patches/api/0134-Add-PhantomPreSpawnEvent.patch
+++ b/patches/api/0134-Add-PhantomPreSpawnEvent.patch
@@ -6,7 +6,7 @@ Subject: [PATCH] Add PhantomPreSpawnEvent
diff --git a/src/main/java/com/destroystokyo/paper/event/entity/PhantomPreSpawnEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/PhantomPreSpawnEvent.java
new file mode 100644
-index 0000000000000000000000000000000000000000..ff7d9ff618ab821eeece6923a694a9a4eea8585d
+index 0000000000000000000000000000000000000000..e465222aa8218a7fef85f2e1df1a919a88499eab
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/event/entity/PhantomPreSpawnEvent.java
@@ -0,0 +1,32 @@
@@ -17,17 +17,18 @@ index 0000000000000000000000000000000000000000..ff7d9ff618ab821eeece6923a694a9a4
+import org.bukkit.entity.EntityType;
+import org.bukkit.event.entity.CreatureSpawnEvent;
+import org.jetbrains.annotations.ApiStatus;
-+import org.jetbrains.annotations.NotNull;
++import org.jspecify.annotations.NullMarked;
+
+/**
+ * Called when a phantom is spawned for an exhausted player
+ */
++@NullMarked
+public class PhantomPreSpawnEvent extends PreCreatureSpawnEvent {
+
-+ @NotNull private final Entity entity;
++ private final Entity entity;
+
+ @ApiStatus.Internal
-+ public PhantomPreSpawnEvent(@NotNull Location location, @NotNull Entity entity, @NotNull CreatureSpawnEvent.SpawnReason reason) {
++ public PhantomPreSpawnEvent(final Location location, final Entity entity, final CreatureSpawnEvent.SpawnReason reason) {
+ super(location, EntityType.PHANTOM, reason);
+ this.entity = entity;
+ }
@@ -37,7 +38,6 @@ index 0000000000000000000000000000000000000000..ff7d9ff618ab821eeece6923a694a9a4
+ *
+ * @return the Entity
+ */
-+ @NotNull
+ public Entity getSpawningEntity() {
+ return this.entity;
+ }