code: public static ItemStack getItemStackFromState(IBlockState state)
  	{
  		if (state == null)
  			return null;
  		Item item = Item.getItemFromBlock(state.getBlock());
  		if (item == null)
  			return ItemStack.EMPTY;
  		return new ItemStack(item, 1, state.getBlock().damageDropped(state));
  	}
docs: Gets the {@link ItemStack} matching the specified {@link IBlockState}
  
  @param state the state
  @return the item stack from state