13
0
geforkt von Mirrors/Paper

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

Dieser Commit ist enthalten in:
HexedHero 2021-08-21 14:53:01 +01:00
Ursprung 5fb95dd824
Commit 849bc22bdf

Datei anzeigen

@ -18,10 +18,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+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();