{
final ItemStack logAcacia = Element.LOG_ACACIA.get();
final ItemStack acaciaPlanks = new ItemStack(block, 4, BlockCustomWood.BlockType.ACACIA.metadata());
// acaciaLog = acaciaPlanks
final IRecipe recipe = new ShapelessOreRecipe(acaciaPlanks, logAcacia);
proxy.addRecipe(recipe);
// acaciaLog ==> charcoal
proxy.addSmelting(logAcacia, charcoal, 0.15F);
}
if (Element.LOG_JAPANESE_MAPLE.isPresent())
{
final ItemStack logMaple = Element.LOG_JAPANESE_MAPLE.get();
final ItemStack maplePlanks = new ItemStack(block, 4, BlockCustomWood.BlockType.JAPANESE_MAPLE.metadata());
// acaciaLog = acaciaPlanks
final IRecipe recipe = new ShapelessOreRecipe(maplePlanks, logMaple);
proxy.addRecipe(recipe);
// acaciaLog ==> charcoal
proxy.addSmelting(logMaple, charcoal, 0.15F);
}
if (Element.LOG_AUTUMN.isPresent())
{
final ItemStack logAutumn = Element.LOG_AUTUMN.get();
final ItemStack autumnPlanks = new ItemStack(block, 4, BlockCustomWood.BlockType.AUTUMN.metadata());
// acaciaLog = acaciaPlanks
final IRecipe recipe = new ShapelessOreRecipe(autumnPlanks, logAutumn);
proxy.addRecipe(recipe);
// acaciaLog ==> charcoal
proxy.addSmelting(logAutumn, charcoal, 0.15F);
}
if(Element.LOG_HUGE_OAK_NW.isPresent() && Element.LOG_HUGE_OAK_NE.isPresent() && Element.LOG_HUGE_OAK_SW.isPresent() && Element.LOG_HUGE_OAK_SE.isPresent()) {
for (final ItemStack itemstack : new ItemStack[] { Element.LOG_HUGE_OAK_NW.get(), Element.LOG_HUGE_OAK_NE.get(), Element.LOG_HUGE_OAK_SW.get(), Element.LOG_HUGE_OAK_SE.get() }) {
final IRecipe recipe = new ShapelessOreRecipe(new ItemStack(Blocks.log), itemstack);
Extrabiomes.proxy.addRecipe(recipe);
}
}
if(Element.LOG_FIR.isPresent() && Element.LOG_HUGE_FIR_NW.isPresent() && Element.LOG_HUGE_FIR_NE.isPresent() && Element.LOG_HUGE_FIR_SW.isPresent() && Element.LOG_HUGE_FIR_SE.isPresent()) {
for (final ItemStack itemstack : new ItemStack[] { Element.LOG_HUGE_FIR_NW.get(), Element.LOG_HUGE_FIR_NE.get(), Element.LOG_HUGE_FIR_SW.get(), Element.LOG_HUGE_FIR_SE.get() }) {
final IRecipe recipe = new ShapelessOreRecipe(Element.LOG_FIR.get(), itemstack);
Extrabiomes.proxy.addRecipe(recipe);
}
}
if(Element.LOG_REDWOOD.isPresent() && Element.LOG_HUGE_REDWOOD_NW.isPresent() && Element.LOG_HUGE_REDWOOD_NE.isPresent() && Element.LOG_HUGE_REDWOOD_SW.isPresent() && Element.LOG_HUGE_REDWOOD_SE.isPresent()) {
for (final ItemStack itemstack : new ItemStack[] { Element.LOG_HUGE_REDWOOD_NW.get(), Element.LOG_HUGE_REDWOOD_NE.get(), Element.LOG_HUGE_REDWOOD_SW.get(), Element.LOG_HUGE_REDWOOD_SE.get()}) {
final IRecipe recipe = new ShapelessOreRecipe(Element.LOG_REDWOOD.get(), itemstack);
Extrabiomes.proxy.addRecipe(recipe);
}
}
for (final Element logCypress : new Element[] { Element.LOG_CYPRESS })
{
if (logCypress.isPresent())
{
final ItemStack cypressPlanks = new ItemStack(block, 4, BlockCustomWood.BlockType.CYPRESS.metadata());
// cypressLog = cypressPlanks
final IRecipe recipe = new ShapelessOreRecipe(cypressPlanks, logCypress.get());
proxy.addRecipe(recipe);
// cypressLog ==> charcoal
proxy.addSmelting(logCypress.get(), charcoal, 0.15F);
}
}
for (final Element logSakura : new Element[] { Element.LOG_SAKURA_BLOSSOM })
{
if (logSakura.isPresent())
{
final ItemStack sakuraPlanks = new ItemStack(block, 2, BlockCustomWood.BlockType.SAKURA_BLOSSOM.metadata());
// cypressLog = cypressPlanks
final IRecipe recipe = new ShapelessOreRecipe(sakuraPlanks, logSakura.get());
proxy.addRecipe(recipe);
// cypressLog ==> charcoal
proxy.addSmelting(logSakura.get(), charcoal, 0.15F);
}
}
for (final Element logBaldCypress : new Element[] { Element.LOG_BALD_CYPRESS, Element.LOG_QUARTER_BALD_CYPRESS, Element.LOG_KNEE_BALD_CYPRESS })
{
if (logBaldCypress.isPresent())
{
final ItemStack cypressPlanks = new ItemStack(block, 4, BlockCustomWood.BlockType.BALD_CYPRESS.metadata());
// cypressLog = cypressPlanks
final IRecipe recipe = new ShapelessOreRecipe(cypressPlanks, logBaldCypress.get());
proxy.addRecipe(recipe);
// cypressLog ==> charcoal
proxy.addSmelting(logBaldCypress.get(), charcoal, 0.15F);
}
}
for (final Element logRainbow : new Element[] { Element.LOG_RAINBOW_EUCALYPTUS, Element.LOG_QUARTER_RAINBOW_EUCALYPTUS, Element.LOG_KNEE_RAINBOW_EUCALYPTUS })
{
if (logRainbow.isPresent())
{
final ItemStack rainbowPlanks = new ItemStack(block, 4, BlockCustomWood.BlockType.RAINBOW_EUCALYPTUS.metadata());
// rainbowLog = rainbowPlanks
final IRecipe recipe = new ShapelessOreRecipe(rainbowPlanks, logRainbow.get());
proxy.addRecipe(recipe);
// rainbowLog ==> charcoal
proxy.addSmelting(logRainbow.get(), charcoal, 0.15F);
}
}
for (final Element firLog : new Element[] { Element.LOG_FIR, Element.LOG_QUARTER_FIR })
{
if (firLog.isPresent())
{
final ItemStack firPlanks = new ItemStack(block, 4, BlockCustomWood.BlockType.FIR.metadata());
// firLog = firPlanks
final IRecipe recipe = new ShapelessOreRecipe(firPlanks, firLog.get());
proxy.addRecipe(recipe);
// firLog ==> charcoal
proxy.addSmelting(firLog.get(), charcoal, 0.15F);
}
}
for (final Element redwoodLog : new Element[] { Element.LOG_QUARTER_REDWOOD, Element.LOG_REDWOOD })
{
if (redwoodLog.isPresent())
{
final ItemStack redwoodPlanks = new ItemStack(block, 4, BlockCustomWood.BlockType.REDWOOD.metadata());
// redwoodLog = redwoodPlanks
final IRecipe recipe = new ShapelessOreRecipe(redwoodPlanks, redwoodLog.get());
proxy.addRecipe(recipe);
// redwoodLog ==> charcoal
proxy.addSmelting(redwoodLog.get(), charcoal, 0.15F);
}
}
for (final Element oakLog : new Element[] { Element.LOG_QUARTER_OAK })
{
if (oakLog.isPresent())
{
final ItemStack oakPlanks = new ItemStack(Blocks.planks, 4);
// oakLog = oakPlanks
final IRecipe recipe = new ShapelessOreRecipe(oakPlanks, oakLog.get());
proxy.addRecipe(recipe);
// oakLog ==> charcoal
proxy.addSmelting(oakLog.get(), charcoal, 0.15F);
}