package thaumic.tinkerer.common.block.fire;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.research.ResearchPage;
import thaumcraft.common.config.ConfigItems;
import thaumic.tinkerer.common.core.helper.BlockTuple;
import thaumic.tinkerer.common.lib.LibBlockNames;
import thaumic.tinkerer.common.lib.LibResearch;
import thaumic.tinkerer.common.registry.ThaumicTinkererCrucibleRecipe;
import thaumic.tinkerer.common.registry.ThaumicTinkererRecipe;
import thaumic.tinkerer.common.research.IRegisterableResearch;
import thaumic.tinkerer.common.research.ResearchHelper;
import thaumic.tinkerer.common.research.TTResearchItem;
import java.util.HashMap;
public class BlockFireEarth extends BlockFireBase {
public BlockFireEarth() {
super();
}
@Override
public String getBlockName() {
return LibBlockNames.BLOCK_FIRE_EARTH;
}
@Override
public IRegisterableResearch getResearchItem() {
return (TTResearchItem) new TTResearchItem(LibResearch.KEY_FIRE_TERRA, new AspectList().add(Aspect.FIRE, 5).add(Aspect.EARTH, 5), 4, -6, 2, new ItemStack(this)).setParents(LibResearch.KEY_BRIGHT_NITOR).setConcealed()
.setPages(new ResearchPage("0"), ResearchHelper.crucibleRecipePage(LibResearch.KEY_FIRE_TERRA)).setSecondary();
}
@Override
public ThaumicTinkererRecipe getRecipeItem() {
return new ThaumicTinkererCrucibleRecipe(LibResearch.KEY_FIRE_TERRA, new ItemStack(this), new ItemStack(ConfigItems.itemShard, 1, 3), new AspectList().add(Aspect.FIRE, 5).add(Aspect.MAGIC, 5).add(Aspect.EARTH, 5));
}
@Override
public HashMap<BlockTuple, BlockTuple> getBlockTransformation() {
HashMap<BlockTuple, BlockTuple> result = new HashMap<BlockTuple, BlockTuple>();
result.put(new BlockTuple(Blocks.sand), new BlockTuple(Blocks.dirt));
result.put(new BlockTuple(Blocks.gravel), new BlockTuple(Blocks.clay));
result.put(new BlockTuple(Blocks.nether_brick), new BlockTuple(Blocks.planks));
result.put(new BlockTuple(Blocks.nether_brick_fence), new BlockTuple(Blocks.fence));
result.put(new BlockTuple(Blocks.nether_brick_stairs), new BlockTuple(Blocks.oak_stairs));
result.put(new BlockTuple(Blocks.cactus), new BlockTuple(Blocks.log));
result.put(new BlockTuple(Blocks.snow_layer), new BlockTuple(Blocks.tallgrass));
result.put(new BlockTuple(Blocks.stone), new BlockTuple(Blocks.dirt));
result.put(new BlockTuple(Blocks.mob_spawner), new BlockTuple(Blocks.iron_block));
result.put(new BlockTuple(Blocks.log), new BlockTuple(Blocks.dirt));
result.put(new BlockTuple(Blocks.log2), new BlockTuple(Blocks.dirt));
result.put(new BlockTuple(Blocks.leaves), new BlockTuple(Blocks.dirt));
result.put(new BlockTuple(Blocks.leaves2), new BlockTuple(Blocks.dirt));
result.put(new BlockTuple(Blocks.cobblestone), new BlockTuple(Blocks.dirt));
result.put(new BlockTuple(Blocks.planks), new BlockTuple(Blocks.dirt));
result.put(new BlockTuple(Blocks.glass), new BlockTuple(Blocks.dirt));
return result;
}
@Override
public HashMap<thaumic.tinkerer.common.core.helper.BlockTuple, thaumic.tinkerer.common.core.helper.BlockTuple> getBlockTransformation(World w, int x, int y, int z) {
return getBlockTransformation();
}
}