aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0300-More-CommandBlock-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0300-More-CommandBlock-API.patch')
-rw-r--r--patches/api/0300-More-CommandBlock-API.patch11
1 files changed, 5 insertions, 6 deletions
diff --git a/patches/api/0300-More-CommandBlock-API.patch b/patches/api/0300-More-CommandBlock-API.patch
index c8c52c7587..077206eca6 100644
--- a/patches/api/0300-More-CommandBlock-API.patch
+++ b/patches/api/0300-More-CommandBlock-API.patch
@@ -6,16 +6,17 @@ Subject: [PATCH] More CommandBlock API
diff --git a/src/main/java/io/papermc/paper/command/CommandBlockHolder.java b/src/main/java/io/papermc/paper/command/CommandBlockHolder.java
new file mode 100644
-index 0000000000000000000000000000000000000000..cbca0e890a8e79c98555c94fb6487e7d181901aa
+index 0000000000000000000000000000000000000000..8dc061e38a1728ec4d9dddcb3564ed1b1da746c8
--- /dev/null
+++ b/src/main/java/io/papermc/paper/command/CommandBlockHolder.java
-@@ -0,0 +1,58 @@
+@@ -0,0 +1,57 @@
+package io.papermc.paper.command;
+
+import net.kyori.adventure.text.Component;
-+import org.jetbrains.annotations.NotNull;
-+import org.jetbrains.annotations.Nullable;
++import org.jspecify.annotations.NullMarked;
++import org.jspecify.annotations.Nullable;
+
++@NullMarked
+public interface CommandBlockHolder {
+
+ /**
@@ -25,7 +26,6 @@ index 0000000000000000000000000000000000000000..cbca0e890a8e79c98555c94fb6487e7d
+ *
+ * @return Command that this CommandBlock will run when activated.
+ */
-+ @NotNull
+ String getCommand();
+
+ /**
@@ -42,7 +42,6 @@ index 0000000000000000000000000000000000000000..cbca0e890a8e79c98555c94fb6487e7d
+ *
+ * @return the last output
+ */
-+ @NotNull
+ Component lastOutput();
+
+ /**