use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class LeafDecaysScriptEvent method onLeafDecays.
@EventHandler
public void onLeafDecays(LeavesDecayEvent event) {
location = new LocationTag(event.getBlock().getLocation());
material = new MaterialTag(event.getBlock());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class BlockIgnitesScriptEvent method onBlockIgnites.
@EventHandler
public void onBlockIgnites(BlockIgniteEvent event) {
location = new LocationTag(event.getBlock().getLocation());
cause = new ElementTag(event.getCause().name());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class BlockSpreadsScriptEvent method onBlockSpreads.
@EventHandler
public void onBlockSpreads(BlockSpreadEvent event) {
location = new LocationTag(event.getBlock().getLocation());
material = new MaterialTag(event.getSource());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class ItemMergesScriptEvent method onItemMerges.
@EventHandler
public void onItemMerges(ItemMergeEvent event) {
Item entity = event.getEntity();
Item target = event.getTarget();
location = new LocationTag(target.getLocation());
item = new ItemTag(entity.getItemStack());
this.entity = new EntityTag(entity);
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class EntityInteractScriptEvent method onEntityInteract.
@EventHandler
public void onEntityInteract(EntityInteractEvent event) {
entity = new EntityTag(event.getEntity());
location = new LocationTag(event.getBlock().getLocation());
material = new MaterialTag(event.getBlock());
this.event = event;
fire(event);
}
Aggregations