use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class EntityCreatePortalScriptEvent method onEntityCreatesPortal.
@EventHandler
public void onEntityCreatesPortal(EntityCreatePortalEvent event) {
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 EntityDropsItemScriptEvent method onPlayerDropsItem.
@EventHandler
public void onPlayerDropsItem(PlayerDropItemEvent event) {
dropper = new EntityTag(event.getPlayer());
location = dropper.getLocation();
itemEntity = new EntityTag(event.getItemDrop());
EntityTag.rememberEntity(itemEntity.getBukkitEntity());
item = new ItemTag(((Item) itemEntity.getBukkitEntity()).getItemStack());
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class EntityDropsItemScriptEvent method onEntityDropsItem.
@EventHandler
public void onEntityDropsItem(EntityDropItemEvent event) {
dropper = new EntityTag(event.getEntity());
location = dropper.getLocation();
itemEntity = new EntityTag(event.getItemDrop());
EntityTag.rememberEntity(itemEntity.getBukkitEntity());
item = new ItemTag(((Item) itemEntity.getBukkitEntity()).getItemStack());
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class EntityEntersVehicleScriptEvent method onEntityEntersVehicle.
@EventHandler
public void onEntityEntersVehicle(EntityMountEvent event) {
vehicle = new EntityTag(event.getMount());
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 EntityExplosionPrimesScriptEvent method onEntityExplosionPrimes.
@EventHandler
public void onEntityExplosionPrimes(ExplosionPrimeEvent event) {
entity = new EntityTag(event.getEntity());
this.event = event;
fire(event);
}
Aggregations