use of se.gory_moon.horsepower.blocks.BlockHPChoppingBase in project HorsePower by GoryMoon.
the class ChoppingRecipe method getRecipeOutput.
@Nonnull
@Override
public ItemStack getRecipeOutput() {
if (!outputBlocks.isEmpty() && !output.isEmpty()) {
ItemStack stack = outputBlocks.get(0);
BlockHPChoppingBase block = (BlockHPChoppingBase) Block.getBlockFromItem(output.getItem());
int meta = stack.getMetadata();
if (meta == OreDictionary.WILDCARD_VALUE)
meta = 0;
return createItemStack(block, Block.getBlockFromItem(stack.getItem()), meta);
}
return super.getRecipeOutput();
}
Aggregations