1fbc290025
Renaming "Tome of Alchemical Knowledge" to "Alchenomicon"
27 lines
964 B
Java
27 lines
964 B
Java
package com.pahimar.ee3.handler;
|
|
|
|
import com.pahimar.ee3.item.crafting.RecipesAlchemicalBagDyes;
|
|
import com.pahimar.ee3.util.IOwnable;
|
|
import com.pahimar.ee3.util.ItemHelper;
|
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
|
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
|
import net.minecraft.item.crafting.CraftingManager;
|
|
|
|
public class CraftingHandler
|
|
{
|
|
public static void init() {
|
|
// Add in the ability to dye Alchemical Bags
|
|
CraftingManager.getInstance().getRecipeList().add(new RecipesAlchemicalBagDyes());
|
|
}
|
|
|
|
@SubscribeEvent
|
|
public void onItemCraftedEvent(PlayerEvent.ItemCraftedEvent event) {
|
|
if (event.crafting.getItem() instanceof IOwnable) {
|
|
ItemHelper.setOwner(event.crafting, event.player);
|
|
}
|
|
|
|
// TODO Conversion of deprecated alchemical dusts to shards of minium with appropriate energy values
|
|
// https://github.com/pahimar/Equivalent-Exchange-3/issues/1020
|
|
}
|
|
}
|