mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 19:15:32 +00:00
31 lines
714 B
Java
31 lines
714 B
Java
package cpw.mods.fml.common.modloader;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.inventory.IInventory;
|
|
import net.minecraft.item.ItemStack;
|
|
import cpw.mods.fml.common.ICraftingHandler;
|
|
|
|
public class ModLoaderCraftingHelper implements ICraftingHandler
|
|
{
|
|
|
|
private BaseModProxy mod;
|
|
|
|
public ModLoaderCraftingHelper(BaseModProxy mod)
|
|
{
|
|
this.mod = mod;
|
|
}
|
|
|
|
@Override
|
|
public void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix)
|
|
{
|
|
mod.takenFromCrafting(player, item, craftMatrix);
|
|
}
|
|
|
|
@Override
|
|
public void onSmelting(EntityPlayer player, ItemStack item)
|
|
{
|
|
mod.takenFromFurnace(player, item);
|
|
}
|
|
|
|
}
|