mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Also fire cast-events for CastingBasin. Add separate events for CastingBasin and CastingTable.
This commit is contained in:
1 parent
3cab9c0063
commit
0821f9f77f
5 files changed
+45
-6
No files matched your search
@@ -9,7 +9,7 @@ import tconstruct.library.crafting.CastingRecipe;
|
||||
*
|
||||
* Set result to DENY to prevent casting.
|
||||
*/
|
||||
public class SmelteryCastEvent extends Event {
|
||||
public abstract class SmelteryCastEvent extends Event {
|
||||
public final CastingRecipe recipe;
|
||||
public final FluidStack fluid;
|
||||
|
||||
@@ -17,4 +17,16 @@ public class SmelteryCastEvent extends Event {
|
||||
this.recipe = recipe;
|
||||
this.fluid = fluid;
|
||||
}
|
||||
|
||||
public static class CastingTable extends SmelteryCastEvent {
|
||||
public CastingTable(CastingRecipe recipe, FluidStack fluid) {
|
||||
super(recipe, fluid);
|
||||
}
|
||||
}
|
||||
|
||||
public static class CastingBasin extends SmelteryCastEvent {
|
||||
public CastingBasin(CastingRecipe recipe, FluidStack fluid) {
|
||||
super(recipe, fluid);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user