use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class ProjectileLaunchedScriptEvent method onProjectileLaunched.
@EventHandler
public void onProjectileLaunched(ProjectileLaunchEvent event) {
Entity projectile = event.getEntity();
EntityTag.rememberEntity(projectile);
this.projectile = new EntityTag(projectile);
location = new LocationTag(event.getEntity().getLocation());
this.event = event;
fire(event);
EntityTag.forgetEntity(projectile);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class SheepRegrowsScriptEvent method onSheepRegrows.
@EventHandler
public void onSheepRegrows(SheepRegrowWoolEvent event) {
entity = new EntityTag(event.getEntity());
location = new LocationTag(entity.getLocation());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class PlayerEmptiesBucketScriptEvent method onBucketEmpty.
@EventHandler
public void onBucketEmpty(PlayerBucketEmptyEvent event) {
location = new LocationTag(event.getBlockClicked().getLocation());
item = new ItemTag(event.getBucket());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class PlayerFillsBucketScriptEvent method onBucketFill.
@EventHandler
public void onBucketFill(PlayerBucketFillEvent event) {
entity = new EntityTag(event.getPlayer());
location = new LocationTag(event.getBlockClicked().getLocation());
item = new ItemTag(event.getItemStack());
material = new MaterialTag(event.getBlockClicked());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.LocationTag in project Denizen-For-Bukkit by DenizenScript.
the class PlayerLeavesBedScriptEvent method onPlayerLeavesBed.
@EventHandler
public void onPlayerLeavesBed(PlayerBedLeaveEvent event) {
if (EntityTag.isNPC(event.getPlayer())) {
return;
}
location = new LocationTag(event.getBed().getLocation());
this.event = event;
fire(event);
}
Aggregations