use of org.bukkit.entity.AreaEffectCloud in project Denizen-For-Bukkit by DenizenScript.
the class LingeringPotionSplashScriptEvent method onLingeringPotionSplash.
@EventHandler
public void onLingeringPotionSplash(LingeringPotionSplashEvent event) {
AreaEffectCloud cloud = event.getAreaEffectCloud();
item = new dItem(event.getEntity().getItem());
duration = new Element(cloud.getDuration());
entity = new dEntity(event.getEntity());
location = entity.getLocation();
radius = new Element(cloud.getRadius());
cancelled = event.isCancelled();
this.event = event;
fire();
event.setCancelled(cancelled);
}
Aggregations