mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 03:22:19 +01:00
Make ProjectileLaunchEvent extend EntitySpawnEvent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
21b8238e91
commit
8be6b43c7d
1 changed files with 1 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue