use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class SheepDyedScriptEvent method onSheepDyed.
@EventHandler
public void onSheepDyed(SheepDyeWoolEvent event) {
entity = new EntityTag(event.getEntity());
color = DyeColor.valueOf(event.getColor().toString());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class SlimeSplitsScriptEvent method onSlimeSplits.
@EventHandler
public void onSlimeSplits(SlimeSplitEvent 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 VillagerChangesProfessionScriptEvent method onVillagerChangesProfession.
@EventHandler
public void onVillagerChangesProfession(VillagerCareerChangeEvent event) {
this.event = event;
this.entity = new EntityTag(event.getEntity());
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class ItemMergesScriptEvent method onItemMerges.
@EventHandler
public void onItemMerges(ItemMergeEvent event) {
Item entity = event.getEntity();
Item target = event.getTarget();
location = new LocationTag(target.getLocation());
item = new ItemTag(entity.getItemStack());
this.entity = new EntityTag(entity);
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.EntityTag in project Denizen-For-Bukkit by DenizenScript.
the class EntityInteractScriptEvent method onEntityInteract.
@EventHandler
public void onEntityInteract(EntityInteractEvent event) {
entity = new EntityTag(event.getEntity());
location = new LocationTag(event.getBlock().getLocation());
material = new MaterialTag(event.getBlock());
this.event = event;
fire(event);
}
Aggregations