net.minecraft.src.forge
Interface IHarvestHandler


public interface IHarvestHandler


Method Summary
 boolean canHarvestBlock(net.minecraft.src.ItemTool item, net.minecraft.src.Block block)
          Return true if the tool in parameter is known to be able to harvest the given block, false if this handler does not know of any particular harvesting.
 

Method Detail

canHarvestBlock

boolean canHarvestBlock(net.minecraft.src.ItemTool item,
                        net.minecraft.src.Block block)
Return true if the tool in parameter is known to be able to harvest the given block, false if this handler does not know of any particular harvesting. Other rules may activate the harvesting outside of this handler. This is typically used to add e.g. blocks only extracted by diamond pickaxe

See Also:
MinecraftForge.registerHarvestHandler(IHarvestHandler)