mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 07:56:01 +00:00
24 lines
632 B
Java
24 lines
632 B
Java
package tconstruct.library.event;
|
|
|
|
import cpw.mods.fml.common.eventhandler.Event;
|
|
import net.minecraft.item.ItemStack;
|
|
import tconstruct.library.crafting.CastingRecipe;
|
|
|
|
/**
|
|
* Fired when an item is cast in the casting table.
|
|
* If consumeCast is set to true, the cast will be destroyed.
|
|
*/
|
|
public class SmelteryCastedEvent extends Event {
|
|
public final CastingRecipe recipe;
|
|
public ItemStack output;
|
|
public boolean consumeCast;
|
|
|
|
public SmelteryCastedEvent(CastingRecipe recipe, ItemStack output) {
|
|
this.recipe = recipe;
|
|
this.consumeCast = recipe.consumeCast;
|
|
this.output = output;
|
|
}
|
|
|
|
|
|
}
|