From 8be6b43c7d40c122248cf004f8fc9c2c46e837a0 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 26 Dec 2018 08:00:00 +1100 Subject: [PATCH] Make ProjectileLaunchEvent extend EntitySpawnEvent By: md_5 --- .../bukkit/event/entity/ProjectileLaunchEvent.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/entity/ProjectileLaunchEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ProjectileLaunchEvent.java index 0c9190ca2b..1d4c07eb5e 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ProjectileLaunchEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/ProjectileLaunchEvent.java @@ -3,13 +3,11 @@ package org.bukkit.event.entity; import org.bukkit.entity.Entity; import org.bukkit.entity.Projectile; import org.bukkit.event.Cancellable; -import org.bukkit.event.HandlerList; /** * Called when a projectile is launched. */ -public class ProjectileLaunchEvent extends EntityEvent implements Cancellable { - private static final HandlerList handlers = new HandlerList(); +public class ProjectileLaunchEvent extends EntitySpawnEvent implements Cancellable { private boolean cancelled; public ProjectileLaunchEvent(Entity what) { @@ -28,13 +26,4 @@ public class ProjectileLaunchEvent extends EntityEvent implements Cancellable { public Projectile getEntity() { return (Projectile) entity; } - - @Override - public HandlerList getHandlers() { - return handlers; - } - - public static HandlerList getHandlerList() { - return handlers; - } }