mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
Make ProjectileLaunchEvent extend EntitySpawnEvent
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user