mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +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.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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue