use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class NPCOpensScriptEvent method NPCOpenGate.
@EventHandler
public void NPCOpenGate(NPCOpenGateEvent event) {
npc = new NPCTag(event.getNPC());
location = new LocationTag(event.getGate().getLocation());
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class LiquidSpreadScriptEvent method onLiquidSpreads.
@EventHandler
public void onLiquidSpreads(BlockFromToEvent event) {
destination = new LocationTag(event.getToBlock().getLocation());
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 PistonExtendsScriptEvent method onPistonExtends.
@EventHandler
public void onPistonExtends(BlockPistonExtendEvent 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 RedstoneScriptEvent method onBlockRedstone.
@EventHandler
public void onBlockRedstone(BlockRedstoneEvent event) {
location = new LocationTag(event.getBlock().getLocation());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class EntityBreaksHangingScriptEvent method onHangingBreaks.
@EventHandler
public void onHangingBreaks(HangingBreakByEntityEvent event) {
hanging = new EntityTag(event.getEntity());
cause = new ElementTag(event.getCause().name());
location = new LocationTag(hanging.getLocation());
breaker = new EntityTag(event.getRemover());
this.event = event;
fire(event);
}
Aggregations