2020-12-27 19:35:49 +01:00
|
|
|
package world.bentobox.bentobox.api.events.addon;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import org.bukkit.event.HandlerList;
|
2021-09-18 17:15:15 +02:00
|
|
|
import org.eclipse.jdt.annotation.NonNull;
|
2022-01-22 22:14:57 +01:00
|
|
|
|
2020-12-27 19:35:49 +01:00
|
|
|
import world.bentobox.bentobox.api.addons.Addon;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* General event that can be called for Addons
|
|
|
|
* @author tastybento
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class AddonGeneralEvent extends AddonBaseEvent {
|
|
|
|
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
|
|
|
|
|
|
@Override
|
2021-09-18 17:15:15 +02:00
|
|
|
public @NonNull HandlerList getHandlers() {
|
2020-12-27 19:35:49 +01:00
|
|
|
return getHandlerList();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static HandlerList getHandlerList() {
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
|
|
|
AddonGeneralEvent(Addon addon, Map<String, Object> keyValues) {
|
|
|
|
// Final variables have to be declared in the constructor
|
|
|
|
super(addon, keyValues);
|
|
|
|
}
|
|
|
|
}
|