-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fire a SmelteryCastEvent when a castingTable tries to cast something.…
… Allows to deny the casting.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/main/java/tconstruct/library/event/SmelteryCastEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters