Add note about EntityMoveEvent not firing for players (#6406)

This commit is contained in:
HexedHero 2021-08-21 14:53:01 +01:00 committed by GitHub
parent 59d449d880
commit aae9a2351b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -6,10 +6,10 @@ Subject: [PATCH] EntityMoveEvent
diff --git a/src/main/java/io/papermc/paper/event/entity/EntityMoveEvent.java b/src/main/java/io/papermc/paper/event/entity/EntityMoveEvent.java
new file mode 100644
index 0000000000000000000000000000000000000000..fae0b1daf733e85d8f691f5ef934b8c0b51db194
index 0000000000000000000000000000000000000000..9704bfa38cf535a247d7b661e5132ba82c836832
--- /dev/null
+++ b/src/main/java/io/papermc/paper/event/entity/EntityMoveEvent.java
@@ -0,0 +1,140 @@
@@ -0,0 +1,143 @@
+package io.papermc.paper.event.entity;
+
+import com.google.common.base.Preconditions;
@ -18,10 +18,13 @@ index 0000000000000000000000000000000000000000..fae0b1daf733e85d8f691f5ef934b8c0
+import org.bukkit.event.Cancellable;
+import org.bukkit.event.HandlerList;
+import org.bukkit.event.entity.EntityEvent;
+import org.bukkit.event.player.PlayerMoveEvent;
+import org.jetbrains.annotations.NotNull;
+
+/**
+ * Holds information for living entity movement events
+ * <p>
+ * Does not fire for players; use {@link PlayerMoveEvent} for player movement.
+ */
+public class EntityMoveEvent extends EntityEvent implements Cancellable {
+ private static final HandlerList handlers = new HandlerList();