Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added two new events related to smeltery - Added a new secret achievement labelled "Doing it Wrong"
- Loading branch information
Showing
5 changed files
with
71 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
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,42 @@ | ||
package tconstruct.library.event; | ||
|
||
import mantle.blocks.abstracts.InventoryLogic; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraftforge.event.Event; | ||
|
||
public class SmelteryEvent extends Event { | ||
|
||
public InventoryLogic component; | ||
public int x, y, z; | ||
|
||
public SmelteryEvent(InventoryLogic component, int x, int y, int z){ | ||
this.component = component; | ||
this.x = x; | ||
this.y = y; | ||
this.z = z; | ||
} | ||
|
||
public static class ItemInsertedIntoCasting extends SmelteryEvent { | ||
public ItemStack item; | ||
public EntityPlayer player; | ||
|
||
public ItemInsertedIntoCasting(InventoryLogic component, int x, int y, int z, ItemStack item, EntityPlayer player) { | ||
super(component, x, y, z); | ||
this.item = item; | ||
this.player = player; | ||
} | ||
} | ||
|
||
public static class ItemRemovedFromCasting extends SmelteryEvent { | ||
public ItemStack item; | ||
public EntityPlayer player; | ||
|
||
public ItemRemovedFromCasting(InventoryLogic component, int x, int y, int z, ItemStack item, EntityPlayer player) { | ||
super(component, x, y, z); | ||
this.item = item; | ||
this.player = player; | ||
} | ||
} | ||
|
||
} |
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