aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0288-Add-EntityInsideBlockEvent.patch
diff options
context:
space:
mode:
authorLulu13022002 <[email protected]>2024-02-01 10:15:57 +0100
committerGitHub <[email protected]>2024-02-01 10:15:57 +0100
commit294347bee236d2bd367000c98c324aa721000889 (patch)
tree8b796048b06bd30eaa676f62682d198c1ed8b489 /patches/api/0288-Add-EntityInsideBlockEvent.patch
parentb3c81089ae26cc3ad2e7388c7b64457f3f83c98a (diff)
downloadPaper-294347bee236d2bd367000c98c324aa721000889.tar.gz
Paper-294347bee236d2bd367000c98c324aa721000889.zip
[ci skip] Cleanup events (#10202)
Diffstat (limited to 'patches/api/0288-Add-EntityInsideBlockEvent.patch')
-rw-r--r--patches/api/0288-Add-EntityInsideBlockEvent.patch10
1 files changed, 6 insertions, 4 deletions
diff --git a/patches/api/0288-Add-EntityInsideBlockEvent.patch b/patches/api/0288-Add-EntityInsideBlockEvent.patch
index 91451b592d..2805c40dcc 100644
--- a/patches/api/0288-Add-EntityInsideBlockEvent.patch
+++ b/patches/api/0288-Add-EntityInsideBlockEvent.patch
@@ -6,10 +6,10 @@ Subject: [PATCH] Add EntityInsideBlockEvent
diff --git a/src/main/java/io/papermc/paper/event/entity/EntityInsideBlockEvent.java b/src/main/java/io/papermc/paper/event/entity/EntityInsideBlockEvent.java
new file mode 100644
-index 0000000000000000000000000000000000000000..109dd7e6d0e7bb0a83fc4c5230f7d5dc122f2bb5
+index 0000000000000000000000000000000000000000..3e98db83060e614c606de41dcd4b4ac4f242edc9
--- /dev/null
+++ b/src/main/java/io/papermc/paper/event/entity/EntityInsideBlockEvent.java
-@@ -0,0 +1,84 @@
+@@ -0,0 +1,86 @@
+package io.papermc.paper.event.entity;
+
+import org.bukkit.block.Block;
@@ -17,6 +17,7 @@ index 0000000000000000000000000000000000000000..109dd7e6d0e7bb0a83fc4c5230f7d5dc
+import org.bukkit.event.Cancellable;
+import org.bukkit.event.HandlerList;
+import org.bukkit.event.entity.EntityEvent;
++import org.jetbrains.annotations.ApiStatus;
+import org.jetbrains.annotations.NotNull;
+
+/**
@@ -58,6 +59,7 @@ index 0000000000000000000000000000000000000000..109dd7e6d0e7bb0a83fc4c5230f7d5dc
+ private final Block block;
+ private boolean cancelled;
+
++ @ApiStatus.Internal
+ public EntityInsideBlockEvent(@NotNull Entity entity, @NotNull Block block) {
+ super(entity);
+ this.block = block;
@@ -70,12 +72,12 @@ index 0000000000000000000000000000000000000000..109dd7e6d0e7bb0a83fc4c5230f7d5dc
+ */
+ @NotNull
+ public Block getBlock() {
-+ return block;
++ return this.block;
+ }
+
+ @Override
+ public boolean isCancelled() {
-+ return cancelled;
++ return this.cancelled;
+ }
+
+ @Override