use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class EntityTamesScriptEvent method onEntityTames.
@EventHandler
public void onEntityTames(EntityTameEvent event) {
entity = new EntityTag(event.getEntity());
owner = new EntityTag((Entity) event.getOwner());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class EntityTeleportScriptEvent method onPlayerTeleports.
@EventHandler
public void onPlayerTeleports(PlayerTeleportEvent event) {
from = new LocationTag(event.getFrom());
to = new LocationTag(event.getTo());
entity = new EntityTag(event.getPlayer());
cause = event.getCause().name();
this.event = null;
pEvent = event;
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class FireworkBurstsScriptEvent method onFireworkBursts.
@EventHandler
public void onFireworkBursts(FireworkExplodeEvent event) {
entity = new EntityTag(event.getEntity());
location = new LocationTag(entity.getLocation());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class HorseJumpsScriptEvent method onHorseJumps.
@EventHandler
public void onHorseJumps(HorseJumpEvent event) {
entity = new EntityTag(event.getEntity());
color = event.getEntity() instanceof Horse ? new ElementTag(((Horse) event.getEntity()).getColor().name()) : null;
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class EntityTargetsScriptEvent method onEntityTargets.
@EventHandler
public void onEntityTargets(EntityTargetEvent event) {
entity = new EntityTag(event.getEntity());
reason = new ElementTag(event.getReason().toString());
target = event.getTarget() != null ? new EntityTag(event.getTarget()) : null;
location = new LocationTag(event.getEntity().getLocation());
this.event = event;
fire(event);
}
Aggregations