public void woodSlabRecipeHandler(WoodSlabActiveEvent event)
{
if (plankAcaciaItem.isPresent())
{
final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.ACACIA.metadata()), new String[] { "ppp" }, 'p', plankAcaciaItem.get());
Extrabiomes.proxy.addRecipe(recipe);
}
if (plankFirItem.isPresent())
{
final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.FIR.metadata()), new String[] { "ppp" }, 'p', plankFirItem.get());
Extrabiomes.proxy.addRecipe(recipe);
}
if (plankRedwoodItem.isPresent())
{
final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.REDWOOD.metadata()), new String[] { "ppp" }, 'p', plankRedwoodItem.get());
Extrabiomes.proxy.addRecipe(recipe);
}
if (plankBaldCypressItem.isPresent())
{
final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.BALD_CYPRESS.metadata()), new String[] { "ppp" }, 'p', plankBaldCypressItem.get());
Extrabiomes.proxy.addRecipe(recipe);
}
if (plankCypressItem.isPresent())
{
final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.CYPRESS.metadata()), new String[] { "ppp" }, 'p', plankCypressItem.get());
Extrabiomes.proxy.addRecipe(recipe);
}
if (plankAutumnItem.isPresent())
{
final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.AUTUMN.metadata()), new String[] { "ppp" }, 'p', plankAutumnItem.get());
Extrabiomes.proxy.addRecipe(recipe);
}
if (plankJapaneseMapleItem.isPresent())
{
final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.JAPANESE_MAPLE.metadata()), new String[] { "ppp" }, 'p', plankJapaneseMapleItem.get());
Extrabiomes.proxy.addRecipe(recipe);
}
if (plankRainbowEucalyptusItem.isPresent())
{
final IRecipe recipe = new ShapedOreRecipe(new ItemStack(event.block, 6, BlockCustomWoodSlab.BlockType.RAINBOW_EUCALYPTUS.metadata()), new String[] { "ppp" }, 'p', plankRainbowEucalyptusItem.get());
Extrabiomes.proxy.addRecipe(recipe);
}
}