aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0483-Leashable-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0483-Leashable-API.patch')
-rw-r--r--patches/api/0483-Leashable-API.patch11
1 files changed, 6 insertions, 5 deletions
diff --git a/patches/api/0483-Leashable-API.patch b/patches/api/0483-Leashable-API.patch
index e5b1a4857d..e37174d499 100644
--- a/patches/api/0483-Leashable-API.patch
+++ b/patches/api/0483-Leashable-API.patch
@@ -6,19 +6,20 @@ Subject: [PATCH] Leashable API
diff --git a/src/main/java/io/papermc/paper/entity/Leashable.java b/src/main/java/io/papermc/paper/entity/Leashable.java
new file mode 100644
-index 0000000000000000000000000000000000000000..7402bab20db0ebcac5b2d492ad002ecf9669caad
+index 0000000000000000000000000000000000000000..7e687535d1a622ddf25e3ece387dbfd5b7a49e83
--- /dev/null
+++ b/src/main/java/io/papermc/paper/entity/Leashable.java
-@@ -0,0 +1,36 @@
+@@ -0,0 +1,37 @@
+package io.papermc.paper.entity;
+
+import org.bukkit.entity.Entity;
-+import org.checkerframework.checker.nullness.qual.NonNull;
-+import org.checkerframework.checker.nullness.qual.Nullable;
++import org.jspecify.annotations.NullMarked;
++import org.jspecify.annotations.Nullable;
+
+/**
+ * Represents an entity that can be leashed.
+ */
++@NullMarked
+public interface Leashable extends Entity {
+
+ /**
@@ -34,7 +35,7 @@ index 0000000000000000000000000000000000000000..7402bab20db0ebcac5b2d492ad002ecf
+ * @return the entity holding the leash
+ * @throws IllegalStateException if not currently leashed
+ */
-+ @NonNull Entity getLeashHolder() throws IllegalStateException;
++ Entity getLeashHolder() throws IllegalStateException;
+
+ /**
+ * Sets the leash on this entity to be held by the supplied entity.