use of com.denizenscript.denizen.objects.EntityTag 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.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class VehicleCollidesBlockScriptEvent method onVehicleCollidesBlock.
@EventHandler
public void onVehicleCollidesBlock(VehicleBlockCollisionEvent event) {
vehicle = new EntityTag(event.getVehicle());
location = new LocationTag(event.getBlock().getLocation());
material = new MaterialTag(event.getBlock());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class VehicleCreatedScriptEvent method onVehicleCreated.
@EventHandler
public void onVehicleCreated(VehicleCreateEvent event) {
Entity entity = event.getVehicle();
EntityTag.rememberEntity(entity);
vehicle = new EntityTag(entity);
this.event = event;
fire(event);
EntityTag.forgetEntity(entity);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class PlayerShearsScriptEvent method onPlayerShears.
@EventHandler
public void onPlayerShears(PlayerShearEntityEvent event) {
if (EntityTag.isNPC(event.getPlayer())) {
return;
}
entity = new EntityTag(event.getEntity());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class PlayerLeashesEntityScriptEvent method onPlayerLeashes.
@EventHandler
public void onPlayerLeashes(PlayerLeashEntityEvent event) {
if (EntityTag.isNPC(event.getPlayer())) {
return;
}
holder = PlayerTag.mirrorBukkitPlayer(event.getPlayer());
entity = new EntityTag(event.getEntity());
this.event = event;
fire(event);
}
Aggregations