Make ProjectileLaunchEvent extend EntitySpawnEvent

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2018-12-26 08:00:00 +11:00
parent 21b8238e91
commit 8be6b43c7d

View file

@ -3,13 +3,11 @@ package org.bukkit.event.entity;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
import org.bukkit.entity.Projectile; import org.bukkit.entity.Projectile;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
/** /**
* Called when a projectile is launched. * Called when a projectile is launched.
*/ */
public class ProjectileLaunchEvent extends EntityEvent implements Cancellable { public class ProjectileLaunchEvent extends EntitySpawnEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private boolean cancelled; private boolean cancelled;
public ProjectileLaunchEvent(Entity what) { public ProjectileLaunchEvent(Entity what) {
@ -28,13 +26,4 @@ public class ProjectileLaunchEvent extends EntityEvent implements Cancellable {
public Projectile getEntity() { public Projectile getEntity() {
return (Projectile) entity; return (Projectile) entity;
} }
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
} }