mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Fire a SmelteryCastEvent when a castingTable tries to cast something. Allows to deny the casting.
This commit is contained in:
1 parent
6f84462215
commit
d5829b0fed
2 files changed
+30
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package tconstruct.library.event;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.Event;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import tconstruct.library.crafting.CastingRecipe;
|
||||
|
||||
/**
|
||||
* Fires when somebody tries to pour a liquid into a metal cast.
|
||||
*
|
||||
* Set result to DENY to prevent casting.
|
||||
*/
|
||||
public class SmelteryCastEvent extends Event {
|
||||
public final CastingRecipe recipe;
|
||||
public final FluidStack fluid;
|
||||
|
||||
public SmelteryCastEvent(CastingRecipe recipe, FluidStack fluid) {
|
||||
this.recipe = recipe;
|
||||
this.fluid = fluid;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user