fix beacon activate/deactivate events (#5646)

This commit is contained in:
Jake Potrebic 2021-05-29 08:22:47 -07:00 committed by GitHub
parent e403d6aafc
commit 525d0e3d37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 35 deletions

View file

@ -6,7 +6,7 @@ Subject: [PATCH] Introduce beacon activation/deactivation events
diff --git a/src/main/java/io/papermc/paper/event/block/BeaconActivatedEvent.java b/src/main/java/io/papermc/paper/event/block/BeaconActivatedEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..a907015c769c754a1599325068259ca0f109489a
index 0000000000000000000000000000000000000000..7575ca7dd84dee89528ec2e5e5f99f97d8a10f58
--- /dev/null
+++ b/src/main/java/io/papermc/paper/event/block/BeaconActivatedEvent.java
@@ -0,0 +1,40 @@
@ -20,7 +20,7 @@ index 0000000000000000000000000000000000000000..a907015c769c754a1599325068259ca0
+
+/**
+ * Called when a beacon is activated.
+ * Activation occurs when the beacon activation sound is played, and the beam becomes visible.
+ * Activation occurs when the beacon beam becomes visible.
+ */
+public class BeaconActivatedEvent extends BlockEvent {
+ private static final HandlerList handlers = new HandlerList();