com.sucy.skill.api.event.AbstractProjectileLandEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proskillapi Show documentation
Show all versions of proskillapi Show documentation
A Minecraft Bukkit plugin aiming to provide an easy code API and skill editor for all server owners to
create unique and fully custom classes and skills.
package com.sucy.skill.api.event;
import com.sucy.skill.api.projectile.CustomProjectile;
import com.sucy.skill.api.projectile.ItemProjectile;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class AbstractProjectileLandEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private final T projectile;
/**
* Initializes a new event.
*
* @param projectile the projectile that hit something
*/
public AbstractProjectileLandEvent(T projectile) {
this.projectile = projectile;
}
/**
* Retrieves the projectile
*
* @return the projectile that hit something
*/
public T getProjectile() {
return projectile;
}
/**
* Bukkit method for taking care of the event handlers.
*
* @return list of event handlers
*/
@Override
public HandlerList getHandlers() {
return handlers;
}
/**
* Bukkit method for taking care of the event handlers.
*
* @return list of event handlers
*/
public static HandlerList getHandlerList() {
return handlers;
}
}