use of com.denizenscript.denizen.objects.MaterialTag in project Denizen-For-Bukkit by DenizenScript.
the class BlockBuiltScriptEvent method onBlockBuilt.
@EventHandler
public void onBlockBuilt(BlockCanBuildEvent event) {
location = new LocationTag(event.getBlock().getLocation());
old_material = new MaterialTag(event.getBlock());
new_material = new MaterialTag(event.getBlockData());
cancelled = !event.isBuildable();
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.MaterialTag in project Denizen-For-Bukkit by DenizenScript.
the class BlockDispensesScriptEvent method onBlockDispenses.
@EventHandler
public void onBlockDispenses(BlockDispenseEvent event) {
location = new LocationTag(event.getBlock().getLocation());
material = new MaterialTag(event.getBlock());
item = new ItemTag(event.getItem());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.MaterialTag 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.MaterialTag 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.MaterialTag 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);
}
Aggregations