use of com.denizenscript.denizen.objects.ItemTag in project Denizen-For-Bukkit by DenizenScript.
the class PlayerElytraBoostScriptEvent method onPlayerElytraBoost.
@EventHandler
public void onPlayerElytraBoost(PlayerElytraBoostEvent event) {
firework = new ItemTag(event.getItemStack());
player = new PlayerTag(event.getPlayer());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.ItemTag in project Denizen-For-Bukkit by DenizenScript.
the class FurnaceBurnsItemScriptEvent method onBrews.
@EventHandler
public void onBrews(FurnaceBurnEvent event) {
location = new LocationTag(event.getBlock().getLocation());
item = new ItemTag(event.getFuel());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.ItemTag in project Denizen-For-Bukkit by DenizenScript.
the class BrewingStandFueledScriptEvent method onBrewingStandFueled.
@EventHandler
public void onBrewingStandFueled(BrewingStandFuelEvent event) {
location = new LocationTag(event.getBlock().getLocation());
item = new ItemTag(event.getFuel());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.ItemTag 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.ItemTag in project Denizen-For-Bukkit by DenizenScript.
the class ItemRecipeFormedScriptEvent method onRecipeFormed.
@EventHandler
public void onRecipeFormed(PrepareItemCraftEvent event) {
this.event = event;
if (event.getRecipe() == null) {
return;
}
result = new ItemTag(event.getInventory().getResult());
if (result.getBukkitMaterial() == Material.AIR) {
result = new ItemTag(event.getRecipe().getResult());
}
cancelled = false;
fire(event);
}
Aggregations