use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class PreEntitySpawnScriptEvent method onPreCreatureSpawn.
@EventHandler
public void onPreCreatureSpawn(PreCreatureSpawnEvent event) {
this.entity = new EntityTag(event.getType());
this.location = new LocationTag(event.getSpawnLocation());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class FurnaceBurnsItemScriptEvent method onBrews.
@EventHandler
public void onBrews(FurnaceBurnEvent event) {
location = new LocationTag(event.getBlock().getLocation());
item = new ItemTag(event.getFuel());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class PistonRetractsScriptEvent method onPistonRetracts.
@EventHandler
public void onPistonRetracts(BlockPistonRetractEvent 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 BlockPhysicsScriptEvent method onBlockPhysics.
@EventHandler
public void onBlockPhysics(BlockPhysicsEvent event) {
Material changedType = event.getChangedType();
if (changedType == Material.REDSTONE_WIRE || changedType == Material.COMPARATOR || changedType == Material.REPEATER) {
return;
}
location = new LocationTag(event.getBlock().getLocation());
material = new MaterialTag(location.getBlock());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class BrewingStandFueledScriptEvent method onBrewingStandFueled.
@EventHandler
public void onBrewingStandFueled(BrewingStandFuelEvent event) {
location = new LocationTag(event.getBlock().getLocation());
item = new ItemTag(event.getFuel());
this.event = event;
fire(event);
}
Aggregations